bash_aliases: change "gvim" from a simple alias to a smarter function
This commit is contained in:
parent
a96d241e93
commit
257f82b792
10
bash_aliases
10
bash_aliases
@ -16,7 +16,15 @@ esac
|
|||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias grepnosvn='grep --color=auto --exclude-dir=".svn"'
|
alias grepnosvn='grep --color=auto --exclude-dir=".svn"'
|
||||||
alias egrepnosvn='egrep --color=auto --exclude-dir=".svn"'
|
alias egrepnosvn='egrep --color=auto --exclude-dir=".svn"'
|
||||||
alias gvim='gvim --remote-tab-silent'
|
function gvim()
|
||||||
|
{
|
||||||
|
arg="$1"
|
||||||
|
if [ "${arg}" = "" ]; then
|
||||||
|
$(which gvim)
|
||||||
|
else
|
||||||
|
$(which gvim) --remote-tab-silent "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
alias cribbage='cribbage -r'
|
alias cribbage='cribbage -r'
|
||||||
alias backgammon='backgammon -r -pb'
|
alias backgammon='backgammon -r -pb'
|
||||||
# put 'cattodo' in $PROMPT_COMMAND to use
|
# put 'cattodo' in $PROMPT_COMMAND to use
|
||||||
|
Loading…
x
Reference in New Issue
Block a user