Added ;;; command in vimrc and fixed "k -"
This commit is contained in:
parent
b9a2ad89b6
commit
e23f078245
6
bashrc
6
bashrc
@ -101,14 +101,14 @@ alias rmgit="git remote rm origin;git remote rm https;git remote rm oOrigin;git
|
||||
function mcl(){ mkdir "$@"&&cl "$@"; }
|
||||
function cl(){ cd "$@" && ls; }
|
||||
function k(){
|
||||
echo "$@"
|
||||
if [ -d "$@" ] ; then
|
||||
cd "$@" && ls
|
||||
elif [ "$@" == "-" ] ; then
|
||||
cd - && ls
|
||||
else
|
||||
vim "$@"
|
||||
fi
|
||||
#elif [ -f "$@" ] ; then
|
||||
# vim "$@"
|
||||
#fi
|
||||
}
|
||||
complete -f k
|
||||
function ovim(){ vim +"SessionOpen $@"; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user