diff options
author | axel <axel@liljencrantz.se> | 2006-02-20 23:02:03 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-20 23:02:03 +1000 |
commit | ea0005e16d2e621f35913fb9c4f768f47666953b (patch) | |
tree | e46adb01d68904f2000729b925e20651ba76598e /etc | |
parent | 6901ad361d5e8e96036e266a315b1dc45ba08bb0 (diff) |
Move code for setting ls and grep colors to function definition files
darcs-hash:20060220130203-ac50b-feb426f6450a0bbd17cb9dacdca94d4d5b72c113.gz
Diffstat (limited to 'etc')
-rw-r--r-- | etc/fish_interactive.fish.in | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/etc/fish_interactive.fish.in b/etc/fish_interactive.fish.in index bbd89ab9..c54a5fa3 100644 --- a/etc/fish_interactive.fish.in +++ b/etc/fish_interactive.fish.in @@ -90,63 +90,6 @@ set_default fish_color_history_current cyan set_default CDPATH . ~ # -# Match colors for grep, if supported -# - -if grep --color=auto --help 1>/dev/null 2>/dev/null - set_exported_default GREP_COLOR '97;45' - set_exported_default GREP_OPTIONS '--color=auto' -end - -# -# Color definitions for ls, if supported -# - -if command ls --color=auto --help 1>/dev/null 2>/dev/null - - set -l color_document 35 - set -l color_image '01;35' - set -l color_sound '01;35' - set -l color_video '01;35' - set -l color_archive '01;31' - set -l color_command '01;32' - set -l color_backup 37 - - set -l default no=00 fi=00 'di=01;34' 'ln=01;36' 'pi=40;33' 'so=01;35' 'bd=40;33;01' 'cd=40;33;01' 'or=01;05;37;41' 'mi=01;05;37;41' ex=$color_command - - for i in .cmd .exe .com .btm .bat .sh .csh .fish - set default $default "*$i=$color_command" - end - - for i in .tar .tgz .arj .taz .lhz .zip .z .Z .gz .bz2 .bz .tz .rpm .cpio .jar .deb .rar .bin .hqx - set default $default "*$i=$color_archive" - end - - for i in .jpg .jpeg .gif .bmp .xbm .xpm .png .tif - set default $default "*$i=$color_image" - end - - for i in .mp3 .au .wav .aiff .ogg .wma - set default $default "*$i=$color_sound" - end - - for i in .avi .mpeg .mpg .divx .mov .qt .wmv .rm - set default $default "*$i=$color_video" - end - - for i in .htm .html .rtf .wpd .doc .pdf .ps .xls .swf .txt .tex .sxw .dvi INSTALL README ChangeLog - set default $default "*$i=$color_document" - end - - for i in '~' .bak - set default $default "*$i=$color_backup" - end - - set -gx LS_COLORS $default -end - - -# # Remove temporary functions # |