More aliases based on zsh_stats

This commit is contained in:
Andrew Tomaka 2013-10-14 00:19:08 -04:00
parent 5dfac799a4
commit 686b984124
3 changed files with 35 additions and 28 deletions

View file

@ -1,6 +1,6 @@
alias ....="cd ../../.." alias ....="cd ../../.."
alias .....="cd ../../../.." alias .....="cd ../../../.."
alias a="ls -l --all" alias a="ls -l --human-readable --all --color=auto"
alias agi="sudo apt-get install" alias agi="sudo apt-get install"
alias agl="dpkg --get-selections" alias agl="dpkg --get-selections"
alias agL="dpkg --listfiles" alias agL="dpkg --listfiles"
@ -15,31 +15,33 @@ alias fn="map-sshfs netprint /data/www/ netprint && cd ~/Mounts/netprint"
alias fun="cd && fusermount -u ~/Mounts/netprint" alias fun="cd && fusermount -u ~/Mounts/netprint"
alias g="g" # overwrite g alias in git plugin so function will work alias g="g" # overwrite g alias in git plugin so function will work
alias ga="git add" alias ga="git add"
alias gaa="git add ." alias gaa="git add --all"
alias gc="git commit" alias gc="git commit"
alias gcf="git commit --file" alias gcm="echo Do not specify message at command line. Use gc"
alias gcm="git commit --message"
alias gco="git checkout" alias gco="git checkout"
alias gd="git diff" alias gd="git diff"
alias gfl="git log -u" alias gfl="git log --patch"
alias gl="git log" alias gl="git log"
alias gh="git hist" alias gh="git hist"
alias ghd="git hist-details" alias ghd="git hist-details"
alias gr="git reset" alias gr="git reset"
alias grc="git rm --cached" alias grc="git rm --cached"
alias grh="git reset --hard" alias grh="git reset --hard"
alias gri="git rebase -i" alias gri="git rebase --interactive"
alias grm="git rm" alias grm="git rm"
alias gs="git status" alias gs="git status"
alias gw="git diff --check" alias gw="git diff --check"
alias Grep='grep' alias Grep='grep'
alias l="ls" alias l="ls"
alias ll="ls -lv --human-readable --color=auto" alias ll="ls -lv --human-readable --color=auto"
alias lp="librarian-puppet"
alias m="more" alias m="more"
alias md="mkdir"
alias ms="tmux -S /tmp/pair && chmod 777 /tmp/pair" alias ms="tmux -S /tmp/pair && chmod 777 /tmp/pair"
alias mw="tmux attach-session -t work || tmux new-session -s work" alias mw="tmux attach-session -t work || tmux new-session -s work"
alias r="rspec spec" alias r="ssh"
alias rd="popd" alias rd="popd"
alias rs="bundle exec rspec spec"
alias sd="pwd | pushd" alias sd="pwd | pushd"
alias s="cd ~/Source" alias s="cd ~/Source"
alias sfs="map-sshfs" alias sfs="map-sshfs"

43
.vimrc
View file

@ -16,10 +16,9 @@ Bundle 'kien/ctrlp.vim'
Bundle 'nathanaelkane/vim-indent-guides' Bundle 'nathanaelkane/vim-indent-guides'
Bundle 'rodjek/vim-puppet' Bundle 'rodjek/vim-puppet'
Bundle 'tpope/vim-fugitive' Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails' Bundle 'tpope/vim-markdown'
Bundle 'tpope/vim-repeat' Bundle 'tpope/vim-repeat'
Bundle 'tpope/vim-surround' Bundle 'tpope/vim-surround'
Bundle 'vim-scripts/ruby-matchit'
" Options " Options
set nocompatible " Disable vi compatibility set nocompatible " Disable vi compatibility
@ -95,25 +94,34 @@ map <Leader>j :wincmd j<cr>
map <Leader>k :wincmd k<cr> map <Leader>k :wincmd k<cr>
map <Leader>l :wincmd l<cr> map <Leader>l :wincmd l<cr>
" others " auto character alignment
map <Leader>t :Tabularize /
map <Leader>t> :Tabularize /=><cr>
map <Leader>te :Tabularize /=<cr>
" vundle
map <Leader>bi :BundleInstall<cr> map <Leader>bi :BundleInstall<cr>
map <Leader>bu :BundleInstall!<cr> map <Leader>bu :BundleInstall!<cr>
" copy and paste - for Linux
map <Leader>c "+ map <Leader>c "+
map <Leader>cs :let @/ = ""<cr>
map <Leader>fw :FixWhitespace<cr>
map <Leader>i mmgg=G`m<cr>
map <Leader>lf :call LargeFileToggle()<cr>
map <Leader>p "+p map <Leader>p "+p
map <Leader>pm :set paste!<cr> map <Leader>pm :set paste!<cr>
" others
" clear search - do not put this comment to the right of ,cs
map <Leader>cs :let @/ = ""<cr>
map <Leader>fw :FixWhitespace<cr>
" indent and return
map <Leader>i mmgg=G`m<cr>
map <Leader>lf :call LargeFileToggle()<cr>
" reload all buffers
map <Leader>ra :bufdo e!<cr> map <Leader>ra :bufdo e!<cr>
map <Leader>s :e ~/Source/<cr> map <Leader>s :e ~/Source/<cr>
map <Leader>sa :call RenameFile()<cr> map <Leader>sa :call RenameFile()<cr>
map <Leader>se :e ~/.vimrc<cr> map <Leader>se :e ~/.vimrc<cr>
map <Leader>st :call SyntaxToggle()<cr> map <Leader>st :call SyntaxToggle()<cr>
map <Leader>sz :so ~/.vimrc<cr> map <Leader>sz :so ~/.vimrc<cr>
map <Leader>t :Tabularize /
map <Leader>t> :Tabularize /=><cr>
map <Leader>te :Tabularize /=<cr>
map <Leader>ts :sp ~/tool-sharpener.txt<cr> map <Leader>ts :sp ~/tool-sharpener.txt<cr>
" Set style " Set style
@ -127,7 +135,7 @@ let g:indent_guides_enable_on_vim_startup=1
let g:indent_guides_auto_colors=0 let g:indent_guides_auto_colors=0
" lightline " lightline
let g:lightline = { let g:lightline = {
\ 'colorscheme': 'wombat', \ 'colorscheme': 'wombat',
\ 'active': { \ 'active': {
\ 'left': [ [ 'mode', 'paste' ], \ 'left': [ [ 'mode', 'paste' ],
@ -147,16 +155,17 @@ function! LargeFileToggle()
set relativenumber! set relativenumber!
set cursorline! set cursorline!
set cursorcolumn! set cursorcolumn!
call SyntaxToggle()
endfunction endfunction
" Toggle syntax highlighting " Toggle syntax highlighting
function! SyntaxToggle() function! SyntaxToggle()
if exists("g:syntax_on") if exists("g:syntax_on")
:syntax off :syntax off
else else
syntax enable syntax enable
endif endif
call SetColors() call SetColors()
endfunction endfunction
" Rename current file - from github/garybernhardt " Rename current file - from github/garybernhardt

View file

@ -1,9 +1,5 @@
* Auto start tmux
* * if [[ $STY = '' ]] then mux work; fi
* * only if not ssh
* insert-sudo function return to end of line * insert-sudo function return to end of line
* vi mode on command line * vi mode on command line
* * set -o vi * * set -o vi
* vim * vim
* * copy and paste still off on laptop * * copy and paste still off on laptop
* OpenCurrentLineInBrowser() vimscript function