Added tabular to vimrc. Added f and cinitify bash function

This commit is contained in:
Austen Adler 2014-07-15 20:41:01 -04:00
parent e4e9605e76
commit 0d0ab30fb0
2 changed files with 29 additions and 8 deletions

36
bashrc
View File

@ -125,19 +125,27 @@ alias remove='sudo apt-get remove'
alias update='sudo apt-get update' alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade' alias upgrade='sudo apt-get upgrade'
alias autoremove='sudo apt-get autoremove' alias autoremove='sudo apt-get autoremove'
alias ..='cl ..' alias ..='f ..'
alias ...='cl ../..' alias ...='f ../..'
alias ....='cl ../../..' alias ....='f ../../..'
alias .....='cl ../../../..' alias .....='f ../../../..'
alias ......='cl ../../../../..' alias ......='f ../../../../..'
alias .......='cl ../../../../../..' alias .......='f ../../../../../..'
alias ........='cl ../../../../../../..' alias ........='f ../../../../../../..'
alias .........='cl ../../../../../../../..' alias .........='f ../../../../../../../..'
alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'" alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'"
alias tux="tmux a||tmux" alias tux="tmux a||tmux"
alias rmgit="git remote rm origin;git remote rm https;git remote rm oOrigin;git remote rm oHttps" alias rmgit="git remote rm origin;git remote rm https;git remote rm oOrigin;git remote rm oHttps"
function mcl(){ mkdir "$@"&&cl "$@"; } function mcl(){ mkdir "$@"&&cl "$@"; }
function cl(){ cd "$@" && ls; } function cl(){ cd "$@" && ls; }
function f(){
if [ -d "$@" ] ; then
cd "$@" && ls
elif [ -f "$@" ] ; then
vim "$@"
fi
}
complete -f f
function ovim(){ vim +"SessionOpen $@"; } function ovim(){ vim +"SessionOpen $@"; }
function ogvim(){ gvim +"SessionOpen $@"; } function ogvim(){ gvim +"SessionOpen $@"; }
function tsh(){ function tsh(){
@ -180,6 +188,18 @@ extract () {
fi fi
} }
export -f extract 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(){ function initify(){
git init git init
git remote add origin git@98.26.78.121:$1/$2.git git remote add origin git@98.26.78.121:$1/$2.git

1
vimrc
View File

@ -200,6 +200,7 @@ Bundle 'mbbill/undotree'
Bundle 'vim-php/vim-php-refactoring' Bundle 'vim-php/vim-php-refactoring'
Bundle 'tpope/vim-fugitive' Bundle 'tpope/vim-fugitive'
Bundle 'kien/ctrlp.vim' Bundle 'kien/ctrlp.vim'
Bundle 'godlygeek/tabular'
"Bundle 'Floobits/floobits-vim' "Bundle 'Floobits/floobits-vim'
"Bundle 'tsaleh/vim-matchit' "Bundle 'tsaleh/vim-matchit'
"Bundle 'Shougo/neosnippet' "Bundle 'Shougo/neosnippet'