diff --git a/linux.zsh b/linux.zsh new file mode 100644 index 0000000..88b84d5 --- /dev/null +++ b/linux.zsh @@ -0,0 +1,13 @@ + +# activate ls colors, (private if possible) +if [[ -a $HOME/.dir_colors ]]; then + if [[ "$TERM" == *256* ]]; then + which dircolors > /dev/null && eval "`dircolors -b $HOME/.dir_colors`" + else + # standard colors for non-256-color terms + which dircolors > /dev/null && eval "`dircolors -b`" + fi +else + which dircolors > /dev/null && eval "`dircolors -b`" +fi + diff --git a/options.zsh b/options.zsh index 119e547..4dc7334 100644 --- a/options.zsh +++ b/options.zsh @@ -7,9 +7,6 @@ export GREP_OPTIONS='-D skip --binary-files=without-match --ignore-case' # keybindings Strg+v is your friend :-) -# Not supported on e.g. OSX, so we test for command first -which dircolors > /dev/null && eval "`dircolors -b`" - bindkey "^[[1;5D" .backward-word bindkey "^[[1;5C" .forward-word bindkey "^[[1;6D" backward-delete-word