aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxero <x@xero.nu>2015-03-29 21:05:04 -0400
committerxero <x@xero.nu>2015-03-29 21:05:04 -0400
commit8c5855a1446866c5577382b12e9f0cc20f6879df (patch)
treecc5fdbfd9284c6a656c4db9cba473ac9b4432a0c
parent37ef7b9e48d9a496c08540772a110b85aacac2e6 (diff)
downloaddotfiles_ascii-8c5855a1446866c5577382b12e9f0cc20f6879df.tar.xz
dotfiles_ascii-8c5855a1446866c5577382b12e9f0cc20f6879df.zip
add zsh lazy aliases for vim and git, pygmentize cat and less, and tree by @Greduan > http://git.io/greduanTree
-rwxr-xr-xzsh/.zsh/aliases.zsh12
1 files changed, 11 insertions, 1 deletions
diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh
index 5046a76..59e665d 100755
--- a/zsh/.zsh/aliases.zsh
+++ b/zsh/.zsh/aliases.zsh
@@ -21,6 +21,10 @@ alias lsls="ls -la --color=auto"
alias lsl="ls -l --color=auto"
alias "cd.."="cd ../"
alias up="cd ../"
+alias v="vim"
+alias vi="vim"
+alias g="git"
+alias tree='tree -CAFa -I "CVS|*.*.package|.svn|.git|.hg|node_modules|bower_components" --dirsfirst'
alias rock="ncmpcpp"
alias mixer="alsamixer"
alias checkrootkits="sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check"
@@ -34,7 +38,7 @@ alias rain="bash ~/code/fun/rain"
alias screenfetch="~/code/sys/info"
alias hashcompare="bash ~/code/sys/hash-compare "
alias tempwatch="while :; do sensors; sleep 1 && clear; done;"
-alias term="urxvtc -hold -e " #used for awesomewm run menu
+alias term="urxvtc -hold -e " #used for run menu
alias tmx="bash ~/code/sys/tmx"
alias fixcursor="xsetroot -cursor_name left_ptr"
alias img="bash ~/code/sys/img"
@@ -55,3 +59,9 @@ alias record="ffmpeg -f x11grab -s 1366x768 -an -r 16 -loglevel quiet -i :0.0 -b
email() {
echo $3 | mutt -s $2 $1
}
+pcat() {
+ pygmentize -f terminal256 -O style=monokai -g
+}
+pless() {
+ pygmentize -f terminal256 -O style=monokai -g $1 | less -r
+}