removes some mac-specific cruft and colors ls
This commit is contained in:
parent
56d449f422
commit
32bf165964
1 changed files with 14 additions and 29 deletions
|
|
@ -35,61 +35,46 @@ if [ -x /usr/bin/dircolors ]; then
|
||||||
#alias vdir='vdir --color=auto'
|
#alias vdir='vdir --color=auto'
|
||||||
|
|
||||||
fi
|
fi
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias grep='grep --color'
|
alias grep='grep --color'
|
||||||
alias fgrep='fgrep --color'
|
alias fgrep='fgrep --color'
|
||||||
alias egrep='egrep --color'
|
alias egrep='egrep --color'
|
||||||
|
|
||||||
# MacPorts Installer addition on 2012-07-11_at_04:34:47: adding an appropriate PATH variable for use with MacPorts.
|
alias vim='~/local/bin/vim'
|
||||||
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
|
|
||||||
# Finished adapting your PATH environment variable for use with MacPorts.
|
|
||||||
|
|
||||||
alias vim='mvim -v'
|
function ll(){ ls -lhF --color=auto "$@"| egrep "^d" ; ls -lXB "$@" 2>&-| \
|
||||||
function ll(){ ls -lhF "$@"| egrep "^d" ; ls -lXB "$@" 2>&-| \
|
|
||||||
egrep -v "^d|total "; }
|
egrep -v "^d|total "; }
|
||||||
alias ls="ls -hF"
|
|
||||||
alias la='ls -Al' # show hidden files
|
alias ls="ls -hF --color=auto"
|
||||||
alias lx='ls -lXB' # sort by extension
|
alias la='ls -Al --color=auto' # show hidden files
|
||||||
alias lk='ls -lSr' # sort by size, biggest last
|
alias lx='ls -lXB --color=auto' # sort by extension
|
||||||
alias lc='ls -ltcr' # sort by and show change time, most recent last
|
alias lk='ls -lSr --color=auto' # sort by size, biggest last
|
||||||
alias lu='ls -ltur' # sort by and show access time, most recent last
|
alias lc='ls -ltcr --color=auto' # sort by and show change time, most recent last
|
||||||
alias lt='ls -ltr' # sort by date, most recent last
|
alias lu='ls -ltur --color=auto' # sort by and show access time, most recent last
|
||||||
alias lm='ls -al |more' # pipe through 'more'
|
alias lt='ls -ltr --color=auto' # sort by date, most recent last
|
||||||
alias lr='ls -lR' # recursive ls
|
alias lm='ls -al --color=auto | more' # pipe through 'more'
|
||||||
|
alias lr='ls -lR --color=auto' # recursive ls
|
||||||
alias tree='tree -Csu' # nice alternative to 'recursive ls'
|
alias tree='tree -Csu' # nice alternative to 'recursive ls'
|
||||||
|
|
||||||
alias mkdir='mkdir -p'
|
alias mkdir='mkdir -p'
|
||||||
# aliases
|
# aliases
|
||||||
alias cd..="cd .."
|
alias cd..="cd .."
|
||||||
alias l="ls -al"
|
alias lp="ls -p --color=auto"
|
||||||
alias lp="ls -p"
|
|
||||||
alias h=history
|
alias h=history
|
||||||
|
|
||||||
# the "kp" alias ("que pasa"), in honor of tony p.
|
# the "kp" alias ("que pasa"), in honor of tony p.
|
||||||
alias kp="ps auxwww"
|
alias kp="ps auxwww"
|
||||||
|
|
||||||
alias ss="/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background &"
|
|
||||||
|
|
||||||
# general path munging
|
# general path munging
|
||||||
PATH=${PATH}:~/bin
|
PATH=${PATH}:~/bin
|
||||||
PATH=${PATH}:/usr/local/bin
|
PATH=${PATH}:/usr/local/bin
|
||||||
|
|
||||||
# postgres
|
|
||||||
export PATH=${PATH}:/usr/local/pgsql/bin
|
|
||||||
export PGDATA=/usr/local/pgsql/data
|
|
||||||
|
|
||||||
|
|
||||||
if [ -f /opt/local/etc/bash_completion.d/git ]; then
|
if [ -f /opt/local/etc/bash_completion.d/git ]; then
|
||||||
source /opt/local/etc/bash_completion.d/git
|
source /opt/local/etc/bash_completion.d/git
|
||||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||||
export GIT_PS1_SHOWUPSTREAM=auto
|
export GIT_PS1_SHOWUPSTREAM=auto
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
source ~/.git-flow-completion.bash
|
|
||||||
|
|
||||||
#export PS1="$BLACK[ \u@$RED\h $GREEN\w$RED_BOLD\$(parse_git_branch)\$(parse_svn_branch)$BLACK ] "
|
|
||||||
|
|
||||||
# configure my multi-line prompt
|
# configure my multi-line prompt
|
||||||
export PS1="
|
export PS1="
|
||||||
$BLACK[ \u@$RED\h $GREEN\w$RED_BOLD\$(parse_svn_branch)\$(__git_ps1 \" (%s)\") $BLACK]
|
$BLACK[ \u@$RED\h $GREEN\w$RED_BOLD\$(parse_svn_branch)\$(__git_ps1 \" (%s)\") $BLACK]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue