[bash] Fix bash profile initialization

Removed automatic initializations of zsh functions.
Fixed not calling correct folders for bash aliases, environment
variables and profile settings.
This commit is contained in:
Marty Oehme 2020-05-19 17:34:28 +02:00
parent ce4473bf9f
commit 1ae92cfc2a
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
4 changed files with 40 additions and 28 deletions

View file

@ -47,11 +47,13 @@ if exist git; then
alias gst='git status'
autoload -Uz is-at-least
if is-at-least 2.13 "$(git --version 2>/dev/null | awk '{print $3}')"; then
alias gsta='git stash push'
else
alias gsta='git stash save'
if [ "$0" = "/bin/zsh" ]; then
autoload -Uz is-at-least
if is-at-least 2.13 "$(git --version 2>/dev/null | awk '{print $3}')"; then
alias gsta='git stash push'
else
alias gsta='git stash save'
fi
fi
alias gstp='git stash pop'
alias gstl='git stash list'