alias: gs als Funktion
This commit is contained in:
parent
51dbaab536
commit
52128319be
1 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,6 @@ if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
|
|||
tmux attach -t default || tmux new -s default
|
||||
fi
|
||||
|
||||
|
||||
### ssh-agent
|
||||
# https://rabexc.org/posts/pitfalls-of-ssh-agents
|
||||
SSH_ENV="$HOME/.ssh/environment"
|
||||
|
@ -203,6 +202,10 @@ function ll {
|
|||
ls -lah "$@"
|
||||
fi
|
||||
}
|
||||
function gs {
|
||||
echo "* = unstaged // + = staged // $ = stashed // % = untracked"
|
||||
git status --show-stash
|
||||
}
|
||||
|
||||
### Aliase
|
||||
# tmux
|
||||
|
@ -231,7 +234,6 @@ alias gdel="git add . && git stash && git stash clear"
|
|||
alias glast="git log -1 HEAD --stat"
|
||||
alias gsp="git stage -p"
|
||||
alias gd="git diff"
|
||||
alias gs="git status"
|
||||
alias glogs="git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
|
||||
# vim
|
||||
alias v="view"
|
||||
|
|
Loading…
Reference in a new issue