Separating .profile.prompt from .bashrc

This commit is contained in:
2021-06-15 10:11:20 +01:00
parent 75ceaf0eaa
commit 4b4c601103
3 changed files with 162 additions and 170 deletions

14
config/.profile.dircolor Executable file
View 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