]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zshrc
Let's try to use suffix aliases
[dotfiles.git] / zsh / .zshrc
index ebfebf491a52090fc9d1b41ffb1f21526f80fa2b..6e04b1aa3f243e802daed2b65909304c76e1a361 100644 (file)
@@ -90,6 +90,11 @@ alias sshnm="ssh -S none"
 ssht() {
     ssh -C -t $1 tmux attach -t0
 }
+
+autoload -U zsh-mime-setup
+zsh-mime-setup
+alias -s html=lynx
+alias -s txt=less
 # }}}
 
 # Faster movement {{{
@@ -116,7 +121,7 @@ alias Gc="git checkout"
 alias Gd="git diff"
 alias Gdc="git diff --cached"
 alias Gs="git show --show-signature"
-alias Gm="git diff --name-only --diff-filter=M"
+alias Gm="git diff --name-only --diff-filter=M --relative"
 alias Gam="git commit --amend"
 alias Gl="git log --oneline --graph --decorate=short"
 alias Gld="git log --format=format:'%ai %Cgreen%h%Creset %s'"
@@ -137,9 +142,6 @@ GREP_ARGS=(
 g() {
     grep $GREP_ARGS $@ | less
 }
-GS() {
-    grep $GREP_ARGS $@ | sort --numeric-sort | less
-}
 alias -g G="| grep --colour=always"
 alias gg="git grep "
 # }}}