Added tabular to vimrc. Added f and cinitify bash function
This commit is contained in:
parent
e4e9605e76
commit
0d0ab30fb0
36
bashrc
36
bashrc
@ -125,19 +125,27 @@ alias remove='sudo apt-get remove'
|
||||
alias update='sudo apt-get update'
|
||||
alias upgrade='sudo apt-get upgrade'
|
||||
alias autoremove='sudo apt-get autoremove'
|
||||
alias ..='cl ..'
|
||||
alias ...='cl ../..'
|
||||
alias ....='cl ../../..'
|
||||
alias .....='cl ../../../..'
|
||||
alias ......='cl ../../../../..'
|
||||
alias .......='cl ../../../../../..'
|
||||
alias ........='cl ../../../../../../..'
|
||||
alias .........='cl ../../../../../../../..'
|
||||
alias ..='f ..'
|
||||
alias ...='f ../..'
|
||||
alias ....='f ../../..'
|
||||
alias .....='f ../../../..'
|
||||
alias ......='f ../../../../..'
|
||||
alias .......='f ../../../../../..'
|
||||
alias ........='f ../../../../../../..'
|
||||
alias .........='f ../../../../../../../..'
|
||||
alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'"
|
||||
alias tux="tmux a||tmux"
|
||||
alias rmgit="git remote rm origin;git remote rm https;git remote rm oOrigin;git remote rm oHttps"
|
||||
function mcl(){ mkdir "$@"&&cl "$@"; }
|
||||
function cl(){ cd "$@" && ls; }
|
||||
function f(){
|
||||
if [ -d "$@" ] ; then
|
||||
cd "$@" && ls
|
||||
elif [ -f "$@" ] ; then
|
||||
vim "$@"
|
||||
fi
|
||||
}
|
||||
complete -f f
|
||||
function ovim(){ vim +"SessionOpen $@"; }
|
||||
function ogvim(){ gvim +"SessionOpen $@"; }
|
||||
function tsh(){
|
||||
@ -180,6 +188,18 @@ extract () {
|
||||
fi
|
||||
}
|
||||
export -f extract
|
||||
function cinitify(){
|
||||
mkdir $2
|
||||
cd $2
|
||||
git init
|
||||
git remote add origin git@98.26.78.121:$1/$2.git
|
||||
git remote add https https://98.26.78.121/gitlab/$1/$2.git
|
||||
#Offline mode
|
||||
git remote add oOrigin git@10.0.1.200:$1/$2.git
|
||||
git remote add oHttps https://10.0.1.200/gitlab/$1/$2.git
|
||||
git remote -v
|
||||
}
|
||||
export -f cinitify
|
||||
function initify(){
|
||||
git init
|
||||
git remote add origin git@98.26.78.121:$1/$2.git
|
||||
|
Loading…
x
Reference in New Issue
Block a user