Add git aliases
This commit is contained in:
parent
ab6ace45ba
commit
912dfa56d4
|
@ -33,6 +33,21 @@ if [[ -n $ZELLIJ ]]; then
|
||||||
add-zsh-hook preexec set_tab_to_command_line
|
add-zsh-hook preexec set_tab_to_command_line
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# git aliases
|
||||||
|
|
||||||
|
function git_aliases() {
|
||||||
|
echo "git aliases:"
|
||||||
|
echo "\tgs: status -sb"
|
||||||
|
echo "\tgl: log --oneline"
|
||||||
|
echo "\tglast: log -1 HEAD --stat"
|
||||||
|
echo "\tgds: diff --staged"
|
||||||
|
}
|
||||||
|
|
||||||
|
alias gs="git status -sb"
|
||||||
|
alias gl="git log --oneline"
|
||||||
|
alias glast="git log -1 HEAD --stat"
|
||||||
|
alias gds="git diff --staged"
|
||||||
|
|
||||||
# load Cargo
|
# load Cargo
|
||||||
if [ -f "$HOME/.cargo/env" ]; then
|
if [ -f "$HOME/.cargo/env" ]; then
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
|
Loading…
Reference in New Issue