summaryrefslogtreecommitdiff
path: root/lib/misc.zsh
diff options
context:
space:
mode:
authorAshley Valent <avalent@atlassian.com>2015-02-11 11:22:15 +1100
committerAshley Valent <avalent@atlassian.com>2015-02-11 11:22:15 +1100
commit3b6a695b60d81691ab8e31197fc8e0444df0e394 (patch)
tree84529e1bc0a54cdd9471e53c597e913797c04014 /lib/misc.zsh
parent3ba10ad0a2ed85c26e096126a7899a401cf8f9e7 (diff)
parentef7e53a78d0e4196c2d1e6e5b268209759d51753 (diff)
downloadzsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.tar.gz
zsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.tar.bz2
zsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.zip
Merge branch 'master' of github.com:avalent/oh-my-zsh
Diffstat (limited to 'lib/misc.zsh')
-rw-r--r--lib/misc.zsh15
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/misc.zsh b/lib/misc.zsh
index a8678b8ec..0b7cb2696 100644
--- a/lib/misc.zsh
+++ b/lib/misc.zsh
@@ -2,9 +2,6 @@
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
-## file rename magick
-bindkey "^[m" copy-prev-shell-word
-
## jobs
setopt long_list_jobs
@@ -12,4 +9,14 @@ setopt long_list_jobs
export PAGER="less"
export LESS="-R"
-export LC_CTYPE=$LANG
+## super user alias
+alias _='sudo'
+alias please='sudo'
+
+## more intelligent acking for ubuntu users
+alias afind='ack-grep -il'
+
+# only define LC_CTYPE if undefined
+if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
+ export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
+fi