[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:
parent
ce4473bf9f
commit
1ae92cfc2a
4 changed files with 40 additions and 28 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue