some minor niceups
This commit is contained in:
parent
2813ab27ff
commit
7afa226999
10
aliases.zsh
10
aliases.zsh
|
@ -12,6 +12,9 @@ alias vedit=" $EDITOR ~/.vimrc"
|
||||||
#alias man="unset PAGER; man"
|
#alias man="unset PAGER; man"
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
|
|
||||||
|
# g for go! is more natural than the autojumps j command
|
||||||
|
alias g=j
|
||||||
|
|
||||||
##### standard aliases (start with a space to be ignored in history)
|
##### standard aliases (start with a space to be ignored in history)
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias ll=' ls -lhF'
|
alias ll=' ls -lhF'
|
||||||
|
@ -19,12 +22,16 @@ alias la=' ls -A'
|
||||||
alias l=' ls -CF'
|
alias l=' ls -CF'
|
||||||
alias v=" clear; ls -Flgh"
|
alias v=" clear; ls -Flgh"
|
||||||
|
|
||||||
alias g='ps aux|grep '
|
alias psgrep='ps aux|grep '
|
||||||
alias d=' dirs -v'
|
alias d=' dirs -v'
|
||||||
|
|
||||||
alias ..=' cd ..; ls'
|
alias ..=' cd ..; ls'
|
||||||
alias ...=' cd ..; cd ..; ls'
|
alias ...=' cd ..; cd ..; ls'
|
||||||
alias ....=' cd ..; cd ..; cd ..; ls'
|
alias ....=' cd ..; cd ..; cd ..; ls'
|
||||||
|
alias cd..='cd ..'
|
||||||
|
alias cd...='cd ../..'
|
||||||
|
alias cd....='cd ../../..'
|
||||||
|
alias cd.....='cd ../../../..'
|
||||||
|
|
||||||
##### global aliases
|
##### global aliases
|
||||||
# zsh buch s.82 (z.B. find / ... NE)
|
# zsh buch s.82 (z.B. find / ... NE)
|
||||||
|
@ -35,6 +42,7 @@ alias -g NO='&>|/dev/null'
|
||||||
alias -g G='| grep -'
|
alias -g G='| grep -'
|
||||||
alias -g P='2>&1 | $PAGER'
|
alias -g P='2>&1 | $PAGER'
|
||||||
alias -g L='| less'
|
alias -g L='| less'
|
||||||
|
alias -g C='| wc -l'
|
||||||
|
|
||||||
# http://www.commandlinefu.com/commands/view/7284/zsh-suffix-to-inform-you-about-long-command-ending
|
# http://www.commandlinefu.com/commands/view/7284/zsh-suffix-to-inform-you-about-long-command-ending
|
||||||
# zsh suffix to inform you about long command ending make, Just add "R" (without quotes) suffix to it and you can do other things:
|
# zsh suffix to inform you about long command ending make, Just add "R" (without quotes) suffix to it and you can do other things:
|
||||||
|
|
|
@ -71,3 +71,8 @@ autoload zmv
|
||||||
# noglob so you don't need to quote the arguments of zmv
|
# noglob so you don't need to quote the arguments of zmv
|
||||||
# mmv *.JPG *.jpg
|
# mmv *.JPG *.jpg
|
||||||
alias mmv='noglob zmv -W'
|
alias mmv='noglob zmv -W'
|
||||||
|
|
||||||
|
# start a webcam for screencast
|
||||||
|
function webcam () {
|
||||||
|
mplayer -cache 128 -tv driver=v4l2:width=350:height=350 -vo xv tv:// -noborder -geometry "+1340+445" -ontop -quiet 2>/dev/null >/dev/null
|
||||||
|
}
|
||||||
|
|
|
@ -91,10 +91,12 @@ function promptSetMultiplexerTabTitle () {
|
||||||
add-zsh-hook preexec promptSetMultiplexerTabTitle
|
add-zsh-hook preexec promptSetMultiplexerTabTitle
|
||||||
|
|
||||||
# setup tmux environment (context + status)
|
# setup tmux environment (context + status)
|
||||||
|
# TODO: shorten the path variable
|
||||||
function tmuxChangeDirectory () {
|
function tmuxChangeDirectory () {
|
||||||
# set the tmux status line
|
# set the tmux status line
|
||||||
if [[ "$TMUX" != "" ]]; then
|
if [[ "$TMUX" != "" ]]; then
|
||||||
tmux set-option -g status-right $OLDPWD >/dev/null
|
newMailCountTool="/home/seebi/bin/scripts/newMailCount.py"
|
||||||
|
tmux set-option -g status-right "$OLDPWD -- #($newMailCountTool /var/mail/seebi)" >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $VCS_TYPE == 'hg' ]]; then
|
if [[ $VCS_TYPE == 'hg' ]]; then
|
||||||
|
|
Loading…
Reference in a new issue