myconfig

my config files
git clone https://a3nm.net/git/myconfig/
Log | Files | Refs | README

commit d66e2de151c5dd6c73c4dcfc3c55d7606651dfe3
parent 036862ce4b9e0fc8fab589e2672b5f1fd11116e8
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue,  8 Nov 2011 14:29:50 +0100

move aliases to separate file

Diffstat:
zsh/alias | 46++++++++++++++++++++++++++++++++++++++++++++++
zsh/zshrc | 49+------------------------------------------------
2 files changed, 47 insertions(+), 48 deletions(-)

diff --git a/zsh/alias b/zsh/alias @@ -0,0 +1,46 @@ +#alias less='less -F' +alias grep='grep --color=auto' +alias guile='rlwrap guile' +alias ls='ls --color=auto -h' +alias l=ls +alias ll='ls --color=auto -lh' +alias lll='ls --color=auto -lh | less' +alias truecrypt='truecrypt -t' +alias df='df -h' +alias gpg='gpg --ask-cert-level' +alias c=cd +alias v=vim +alias u=sudo +alias h=ssh +alias a=cat +alias n=man +alias m=make +alias ag=apt-get +alias p=less +alias t=task +alias md=mkdir +alias g=git +alias la="ls -a" +alias ll="ls -l" +alias gs="git status" +alias ga="git add" +alias gd="git diff" +alias gc="git commit" +alias gcm="git commit -m" +alias gca="git commit -am" +alias gps="git push" +alias gpl="git pull" +alias gl="git log" +alias gb="git branch" +alias gdb="gdb --args" +alias feh="feh -Z" +alias x="exec xinit" +alias mtr="mtr -t" +alias record=". ~/scripts/my_ttyrec" +alias ms="notmuch search" +#alias msw="notmuch search" +alias mn="notmuch search tag:new tag:inbox" +alias mi="notmuch search tag:inbox" +alias mw="grep \$\* | cut -d ' ' -f 1 | while read a; do notmuch show \$a; done | less" +alias msw="history | tail -1 | cut -d ' ' -f2- | mw \$\*" +alias myip="curl icanhazip.com" diff --git a/zsh/zshrc b/zsh/zshrc @@ -1,5 +1,6 @@ . ~/.zsh/path . ~/.zsh/perso +. ~/.zsh/alias . ~/apps/z/z.sh @@ -60,17 +61,7 @@ setopt extendedglob zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31" export GREP_COLOR=31 -alias grep='grep --color=auto' -alias guile='rlwrap guile' -alias ls='ls --color=auto -h' -alias ll='ls --color=auto -lh' -alias lll='ls --color=auto -lh | less' -alias truecrypt='truecrypt -t' - -alias df='df -h' -#alias less='less -F' -alias gpg='gpg --ask-cert-level' zstyle ':completion:*:sudo:*' command-path /usr/local/sbin /usr/local/bin \ /usr/sbin /usr/bin /sbin /bin /usr/X11R6/bin @@ -132,36 +123,6 @@ bindkey '^X' edit-command-line #alias busy='my_file=$(find /usr/include -type f | sort -R | head -n 1); my_len=$(wc -l $my_file | awk "{print $1}"); let "r = $RANDOM % $my_len" 2>/dev/null; vim +$r $my_file' -alias l=ls -alias c=cd -alias v=vim -alias u=sudo -alias h=ssh -alias a=cat -alias n=man -alias m=make -alias ag=apt-get -alias p=less -alias t=task -alias md=mkdir -alias g=git -alias la="ls -a" -alias ll="ls -l" -alias gs="git status" -alias ga="git add" -alias gd="git diff" -alias gc="git commit" -alias gcm="git commit -m" -alias gca="git commit -am" -alias gps="git push" -alias gpl="git pull" -alias gl="git log" -alias gb="git branch" -alias gdb="gdb --args" -alias feh="feh -Z" -alias x="exec xinit" -alias mtr="mtr -t" -alias record=". ~/scripts/my_ttyrec" autoload -U read-from-minibuffer function save-alias() @@ -241,14 +202,6 @@ mcd () { mkdir "$@" && cd ${@:$#} } # move a file somewhere (with flags) and link it here mln () { mv "$@" && ln -s ${@:$#} } -alias ms="notmuch search" -#alias msw="notmuch search" -alias mn="notmuch search tag:new tag:inbox" -alias mi="notmuch search tag:inbox" -alias mw="grep \$\* | cut -d ' ' -f 1 | while read a; do notmuch show \$a; done | less" -alias msw="history | tail -1 | cut -d ' ' -f2- | mw \$\*" -alias myip="curl icanhazip.com" - #TODO bindkey '^Q' push-line