Separating .profile.prompt from .bashrc
This commit is contained in:
14
config/.profile.dircolor
Executable file
14
config/.profile.dircolor
Executable file
@@ -0,0 +1,14 @@
|
||||
|
||||
if [ -n "$PS1" ]; then
|
||||
#
|
||||
# Number of colors and standard colors.
|
||||
#
|
||||
c_num=$(tput colors)
|
||||
#
|
||||
# Load better colors for ls.
|
||||
#
|
||||
if [ -x $(which /bin/dircolors) ] && [ $c_num -ge 256 ] && [ -f ~/.dir_colors ]; then
|
||||
eval $(dircolors ~/.dir_colors)
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user