aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/aliases.zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-08-08 18:06:15 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-08-08 18:06:15 +0200
commitb8ac424046f71f66d70ac7220a7be3a035109fcd (patch)
tree37c2b71879bc3296e58458d0cb23cc48d63b2d9e /zsh/aliases.zsh
parent78dabd1d649145549287a1d45b0462451a2e64b1 (diff)
downloaddotfiles-b8ac424046f71f66d70ac7220a7be3a035109fcd.tar.xz
zshrc: split aliases and functions out to aliases.zsh
Diffstat (limited to 'zsh/aliases.zsh')
-rw-r--r--zsh/aliases.zsh37
1 files changed, 37 insertions, 0 deletions
diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh
new file mode 100644
index 0000000..05f152b
--- /dev/null
+++ b/zsh/aliases.zsh
@@ -0,0 +1,37 @@
+##
+# Aliases and functions
+#
+
+alias '...'='../..'
+
+ls_options=('--almost-all' '--classify' '--color=auto'
+ '--human-readable' '--group-directories-first')
+alias ls='ls "${ls_options[@]}"'
+alias ll='ls "${ls_options[@]}" -l'
+
+alias mkdir='mkdir -vp'
+alias df='df -h'
+
+alias acp='acp -g'
+alias amv='amv -g'
+
+alias ncmpcpp='ncmpcpp -c ~/.config/ncmpcpp/config'
+alias wefree='weechat -a -r "/connect Freenode"'
+alias ms='mbsync -c "$XDG_CONFIG_HOME/mbsyncrc" theos'
+
+alias sprin='curl -F "sprunge=<-" http://sprunge.us'
+sprfile() {
+ curl -F "sprunge=<$1" http://sprunge.us
+}
+
+# Colored man
+man() {
+ env LESS_TERMCAP_mb=$(printf "\e[1;31m") \
+ LESS_TERMCAP_md=$(printf "\e[1;31m") \
+ LESS_TERMCAP_me=$(printf "\e[0m") \
+ LESS_TERMCAP_se=$(printf "\e[0m") \
+ LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
+ LESS_TERMCAP_ue=$(printf "\e[0m") \
+ LESS_TERMCAP_us=$(printf "\e[1;32m") \
+ man "$@"
+}