# color-ls initialization # Skip all for noninteractive shells. [ ! -t 0 ] && return #when USER_LS_COLORS defined do not override user LS_COLORS, but use them. if [ -z "$USER_LS_COLORS" ]; then alias ll='ls -l' 2>/dev/null alias l.='ls -d .*' 2>/dev/null INCLUDE= COLORS= for colors in "$HOME/.dir_colors.$TERM" "$HOME/.dircolors.$TERM" \ "$HOME/.dir_colors" "$HOME/.dircolors"; do [ -e "$colors" ] && COLORS="$colors" && \ INCLUDE="`/usr/bin/cat "$COLORS" | /usr/bin/grep '^INCLUDE' | /usr/bin/cut -d ' ' -f2-`" && \ break done [ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS.$TERM" ] && \ COLORS="/etc/DIR_COLORS.$TERM" [ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS.256color" ] && \ [ "x`/usr/bin/tty -s && /usr/bin/tput colors 2>/dev/null`" = "x256" ] && \ COLORS="/etc/DIR_COLORS.256color" [ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS" ] && \ COLORS="/etc/DIR_COLORS" # Existence of $COLORS already checked above. [ -n "$COLORS" ] || return if [ -e "$INCLUDE" ]; then TMP="`/usr/bin/mktemp .colorlsXXX -q --tmpdir=/tmp`" [ -z "$TMP" ] && return /usr/bin/cat "$INCLUDE" >> $TMP /usr/bin/grep -v '^INCLUDE' "$COLORS" >> $TMP eval "`/usr/bin/dircolors --sh $TMP 2>/dev/null`" /usr/bin/rm -f $TMP else eval "`/usr/bin/dircolors --sh $COLORS 2>/dev/null`" fi [ -z "$LS_COLORS" ] && return /usr/bin/grep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null && return fi unset TMP COLORS INCLUDE alias ll='ls -l --color=auto' 2>/dev/null alias l.='ls -d .* --color=auto' 2>/dev/null alias ls='ls --color=auto' 2>/dev/null
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
256term.csh | File | 771 B | 0644 |
|
256term.sh | File | 841 B | 0644 |
|
bash_timestamps.sh | File | 69 B | 0644 |
|
colorgrep.csh | File | 196 B | 0644 |
|
colorgrep.sh | File | 201 B | 0644 |
|
colorls.csh | File | 1.7 KB | 0644 |
|
colorls.sh | File | 1.57 KB | 0644 |
|
cpanel-php-composer.sh | File | 548 B | 0755 |
|
cpanel-user-commands.sh | File | 358 B | 0644 |
|
csh.local | File | 80 B | 0644 |
|
lang.csh | File | 1.67 KB | 0644 |
|
lang.sh | File | 2.64 KB | 0644 |
|
less.csh | File | 123 B | 0644 |
|
less.sh | File | 121 B | 0644 |
|
locallib.csh | File | 240 B | 0755 |
|
locallib.sh | File | 272 B | 0755 |
|
sh.local | File | 81 B | 0644 |
|
vim.csh | File | 105 B | 0644 |
|
vim.sh | File | 269 B | 0644 |
|
which2.csh | File | 164 B | 0644 |
|
which2.sh | File | 169 B | 0644 |
|