Skip to content

Commit

Permalink
ls with directory first and color (coreutils on mac os x)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifely committed Feb 16, 2012
1 parent 4c23813 commit e0b275f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .bash_it/aliases/available/general.aliases.bash
Expand Up @@ -11,8 +11,8 @@ alias Transmission='transmission-remote 4224 -n frenchost:"quatre deux"'

# List directory contents
alias sl=ls
alias ls='ls -Gh' # Compact view, show colors, human readable
alias la='ls -AFh' # Compact view, show hidden
alias ls='ls -Gh --color=auto --group-directories-first' # Compact view, show colors, human readable
alias la='ls -AFh' # Compact view, show hidden
alias ll='ls -lh'
alias l='ls -alh'
alias l1='ls -1h'
Expand Down
12 changes: 11 additions & 1 deletion .bash_it/lib/appearance.bash
Expand Up @@ -7,7 +7,17 @@ export GREP_COLOR='1;33'
# colored ls
export LSCOLORS='Gxfxcxdxdxegedabagacad'

export LS_OPTIONS='--color=auto'
export CLICOLOR='Yes'

## Colors LS
if [[ `which dircolors` ]]
then
eval `dircolors -b $HOME/.dircolors`
fi

# Load the theme
if [[ $BASH_THEME ]]; then
source "$BASH/themes/$BASH_THEME/$BASH_THEME.theme.bash"
fi
fi

13 changes: 2 additions & 11 deletions .bash_profile
Expand Up @@ -5,13 +5,13 @@
[[ -s /etc/profile.d/rvm.sh ]] && source /etc/profile.d/rvm.sh

# Add rvm gems and nginx to the path
export PATH=/usr/local/sbin:/usr/local/bin:$PATH
export PATH=$PATH:~/.gem/ruby/1.8/bin:/opt/nginx/sbin
export PATH=$PATH:/usr/local/git/bin:/opt/local/bin:/opt/local/sbin

export PATH=$PATH:/usr/netsoul/sbin:/usr/netsoul/bin
export PATH=$PATH:/usr/kerberos/sbin:/usr/kerberos/bin
export PATH=$PATH:/usr/arla/sbin:/usr/arla/bin
export PATH=$PATH:/usr/local/sbin:/usr/local/bin
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
export PATH=$PATH:/usr/site/sbin:/usr/site/bin
export PATH=$PATH:/usr/school/bin/
Expand Down Expand Up @@ -69,13 +69,4 @@ export CNORM_PATH="/usr/local/share/cnorm_3.0"
# Load Bash It
source $BASH/bash_it.sh

## Colors LS
if [[ `which dircolors` ]]
then
eval `dircolors -b $HOME/.dircolors`
fi

if [[ `which gdircolors` ]]
then
eval `gdircolors -b $HOME/.dircolors`
fi
unset LC_CTYPE
1 change: 0 additions & 1 deletion .bashrc
@@ -1,5 +1,4 @@
#Make sure all terminals save history
unset LC_CTYPE
shopt -s histappend
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"

Expand Down

0 comments on commit e0b275f

Please sign in to comment.