Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit e0b275fcea5ae02cdc118e375168ebfc8779e9f8 1 parent 4c23813
Julien Di Marco authored
4 .bash_it/aliases/available/general.aliases.bash
@@ -11,8 +11,8 @@ alias Transmission='transmission-remote 4224 -n frenchost:"quatre deux"'
11 11
12 12 # List directory contents
13 13 alias sl=ls
14   -alias ls='ls -Gh' # Compact view, show colors, human readable
15   -alias la='ls -AFh' # Compact view, show hidden
  14 +alias ls='ls -Gh --color=auto --group-directories-first' # Compact view, show colors, human readable
  15 +alias la='ls -AFh' # Compact view, show hidden
16 16 alias ll='ls -lh'
17 17 alias l='ls -alh'
18 18 alias l1='ls -1h'
12 .bash_it/lib/appearance.bash
@@ -7,7 +7,17 @@ export GREP_COLOR='1;33'
7 7 # colored ls
8 8 export LSCOLORS='Gxfxcxdxdxegedabagacad'
9 9
  10 +export LS_OPTIONS='--color=auto'
  11 +export CLICOLOR='Yes'
  12 +
  13 +## Colors LS
  14 +if [[ `which dircolors` ]]
  15 +then
  16 +eval `dircolors -b $HOME/.dircolors`
  17 +fi
  18 +
10 19 # Load the theme
11 20 if [[ $BASH_THEME ]]; then
12 21 source "$BASH/themes/$BASH_THEME/$BASH_THEME.theme.bash"
13   -fi
  22 +fi
  23 +
13 .bash_profile
@@ -5,13 +5,13 @@
5 5 [[ -s /etc/profile.d/rvm.sh ]] && source /etc/profile.d/rvm.sh
6 6
7 7 # Add rvm gems and nginx to the path
  8 +export PATH=/usr/local/sbin:/usr/local/bin:$PATH
8 9 export PATH=$PATH:~/.gem/ruby/1.8/bin:/opt/nginx/sbin
9 10 export PATH=$PATH:/usr/local/git/bin:/opt/local/bin:/opt/local/sbin
10 11
11 12 export PATH=$PATH:/usr/netsoul/sbin:/usr/netsoul/bin
12 13 export PATH=$PATH:/usr/kerberos/sbin:/usr/kerberos/bin
13 14 export PATH=$PATH:/usr/arla/sbin:/usr/arla/bin
14   -export PATH=$PATH:/usr/local/sbin:/usr/local/bin
15 15 export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
16 16 export PATH=$PATH:/usr/site/sbin:/usr/site/bin
17 17 export PATH=$PATH:/usr/school/bin/
@@ -69,13 +69,4 @@ export CNORM_PATH="/usr/local/share/cnorm_3.0"
69 69 # Load Bash It
70 70 source $BASH/bash_it.sh
71 71
72   -## Colors LS
73   -if [[ `which dircolors` ]]
74   -then
75   -eval `dircolors -b $HOME/.dircolors`
76   -fi
77   -
78   -if [[ `which gdircolors` ]]
79   -then
80   -eval `gdircolors -b $HOME/.dircolors`
81   -fi
  72 +unset LC_CTYPE
1  .bashrc
... ... @@ -1,5 +1,4 @@
1 1 #Make sure all terminals save history
2   -unset LC_CTYPE
3 2 shopt -s histappend
4 3 PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
5 4

0 comments on commit e0b275f

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