aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/.zshrc
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/.zshrc
parent78dabd1d649145549287a1d45b0462451a2e64b1 (diff)
downloaddotfiles-b8ac424046f71f66d70ac7220a7be3a035109fcd.tar.xz
zshrc: split aliases and functions out to aliases.zsh
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc38
1 files changed, 1 insertions, 37 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 2f5c278..e4a6859 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -62,38 +62,6 @@ autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd 'e' edit-command-line
-###########################
-## Aliasing and keybinding
-##
-alias wefree='weechat -a -r "/connect Freenode"'
-alias ms='mbsync -c "$XDG_CONFIG_HOME/mbsyncrc" theos'
-
-ls_options='-A -F --color=auto --group-directories-first'
-alias ls="ls $ls_options"
-alias lsa="ls $ls_options -hAX"
-alias lla="ls $ls_options -lhA"
-
-alias df='df -h'
-alias ncmpcpp='ncmpcpp -c ~/.config/ncmpcpp/config'
-alias '...'='../..'
-alias mkdir='mkdir -vp'
-alias acp='acp -g'
-alias amv='amv -g'
-
-have() { command -v "$1" >&/dev/null; }
-
-# 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 "$@"
-}
-
typeset -A key
key[Home]=${terminfo[khome]}
@@ -118,6 +86,7 @@ key[PageDown]=${terminfo[knp]}
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history
+source "$ZDOTDIR"/aliases.zsh
# Finally, make sure the terminal is in application mode, when zle is
# active. Only then are the values from $terminfo valid.
@@ -132,10 +101,5 @@ if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
zle -N zle-line-finish
fi
-alias sprin='curl -F "sprunge=<-" http://sprunge.us'
-sprfile() {
- curl -F "sprunge=<$1" http://sprunge.us
-}
-
[[ -S '/run/user/1000/keyring/gpg' ]] && export GPG_AGENT_INFO='/run/user/1000/keyring/gpg:0:1'
[[ -S '/run/user/1000/keyring/ssh' ]] && export SSH_AUTH_SOCK='/run/user/1000/keyring/ssh'