From 52128319be85151e54de73c585516c9f907cdb12 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 2 Jul 2022 13:19:46 +0200 Subject: [PATCH] alias: gs als Funktion --- .bash_extra | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.bash_extra b/.bash_extra index b62d27a..3bead4e 100644 --- a/.bash_extra +++ b/.bash_extra @@ -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"