fixed bash inconsistency and gci alias
This commit is contained in:
parent
c5f17241ec
commit
010c9d5f1a
1 changed files with 5 additions and 6 deletions
11
shellrc
11
shellrc
|
@ -3,13 +3,12 @@
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
# Simplify further configuration by is_zsh() function instead of using [[]] every time
|
# Simplify further configuration by is_zsh() function instead of using [[]] every time
|
||||||
if [[ -n ${ZSH_VERSION} ]]; then
|
is_zsh() { [[ -n ${ZSH_VERSION} ]]; }
|
||||||
is_zsh() { return 0 }
|
if is_zsh; then
|
||||||
is_exec() { [[ -x $(whence ${1}) ]] }
|
is_exec() { [[ -x $(whence ${1}) ]]; }
|
||||||
export HOSTNAME=${HOST}
|
export HOSTNAME=${HOST}
|
||||||
else
|
else
|
||||||
is_zsh() { return 1 }
|
is_exec() { [[ -x $(type -P ${1}) ]]; }
|
||||||
is_exec() { [[ -x $(type -P ${1}) ]] }
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ---> $PATH
|
# ---> $PATH
|
||||||
|
@ -132,7 +131,7 @@ alias mountnrg='sudo mount -o loop,offset=307200'
|
||||||
# git
|
# git
|
||||||
alias gss='command git status -s'
|
alias gss='command git status -s'
|
||||||
alias gdf='command git diff'
|
alias gdf='command git diff'
|
||||||
alias gci='command git commit'
|
alias gci='command git commit -a'
|
||||||
alias gup='command git pull'
|
alias gup='command git pull'
|
||||||
# svn
|
# svn
|
||||||
alias sss='command svn status'
|
alias sss='command svn status'
|
||||||
|
|
Loading…
Reference in a new issue