New plugin 'common-aliases' for optional cutting edge zsh aliases #1866

Merged
merged 2 commits into from Dec 3, 2013

Conversation

Projects
None yet
3 participants
Contributor

Stibbons commented Jun 5, 2013

This adds new aliases. They are optional since it's a plugin. This also enable the automatic file open from zsh (based on the extension of the file)

alias ls='ls --color' #I like color
alias l='ls -lFh'     #size,show type,human readable
alias la='ls -lAFh'   #long list,show almost all,show type,human readable
alias lr='ls -tRFh'   #sorted by date,recursive,show type,human readable
alias lt='ls -ltFh'   #long list,sorted by date,show type,human readable
alias ll='ls -l'      #long list
alias ldot='ls -ld .*'
alias lS='ls -1FSsh'
alias lart='ls -1Fcart'
alias lrt='ls -1Fcrt'

alias zshrc='vim ~/.zshrc'

alias grep='grep --color'
alias sgrep='grep -R -n -H -C 5'

alias t='tail -f'

# cd, because typing the backslash is A LOT of work!!
alias ..='cd ../'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'

# Command line head / tail shortcuts
alias -g H='| head'
alias -g T='| tail'
alias -g G='| grep'
alias -g L="| less"
alias -g M="| most"
alias -g LL="2>&1 | less"
alias -g CA="2>&1 | cat -A"
alias -g NE="2> /dev/null"
alias -g NUL="> /dev/null 2>&1"
alias -g P="2>&1| pygmentize -l pytb"

alias dud='du --max-depth=1 -h'
alias duf='du -sh *'
alias fd='find . -type d -name'
alias ff='find . -type f -name'

alias h='history'
alias hgrep="fc -El 0 | grep"
alias help='man'
alias j='jobs'
alias p='ps -f'
alias sortnr='sort -n -r'
alias unexport='unset'

alias whereami=display_info

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

rummik commented Jun 5, 2013

/ is a forward slash... (Sorry -- bit of a pet peeve)

Edit: See http://en.wikipedia.org/wiki/Backslash and http://en.wikipedia.org/wiki/Forward_slash

Contributor

Stibbons commented Jun 5, 2013

Can you develop?

@Stibbons Stibbons New plugin 'common-aliases' for optional cutting edge zsh aliases
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
b832ec9
Contributor

Stibbons commented Jun 11, 2013

Fixed :)

@Stibbons Stibbons Better super-grep
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
dbcaafd

@robbyrussell robbyrussell added a commit that referenced this pull request Dec 3, 2013

@robbyrussell robbyrussell Merge pull request #1866 from Stibbons/gsemet_push_common_aliases
New plugin 'common-aliases' for optional cutting edge zsh aliases
bc79f61

@robbyrussell robbyrussell merged commit bc79f61 into robbyrussell:master Dec 3, 2013

Owner

robbyrussell commented Dec 3, 2013

Can you add some docs to the wiki for this?

Contributor

Stibbons commented Dec 3, 2013

Sure

@hughdbrown hughdbrown pushed a commit to hughdbrown/oh-my-zsh that referenced this pull request Dec 6, 2013

@robbyrussell robbyrussell + Hugh Brown Merge pull request #1866 from Stibbons/gsemet_push_common_aliases
New plugin 'common-aliases' for optional cutting edge zsh aliases
23269bd

@w31 w31 pushed a commit to w31/oh-my-zsh that referenced this pull request Apr 30, 2014

@robbyrussell robbyrussell Merge pull request #1866 from Stibbons/gsemet_push_common_aliases
New plugin 'common-aliases' for optional cutting edge zsh aliases
17e7640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment