Skip to content
Browse files

ls with directory first and color (coreutils on mac os x)

  • Loading branch information...
1 parent 4c23813 commit e0b275fcea5ae02cdc118e375168ebfc8779e9f8 @lifely committed Feb 16, 2012
Showing with 15 additions and 15 deletions.
  1. +2 −2 .bash_it/aliases/available/general.aliases.bash
  2. +11 −1 .bash_it/lib/appearance.bash
  3. +2 −11 .bash_profile
  4. +0 −1 .bashrc
View
4 .bash_it/aliases/available/general.aliases.bash
@@ -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'
View
12 .bash_it/lib/appearance.bash
@@ -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
+
View
13 .bash_profile
@@ -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/
@@ -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
View
1 .bashrc
@@ -1,5 +1,4 @@
#Make sure all terminals save history
-unset LC_CTYPE
shopt -s histappend
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"

0 comments on commit e0b275f

Please sign in to comment.
Something went wrong with that request. Please try again.