From: Samir Benmendil Date: Mon, 15 Jun 2015 21:35:40 +0000 (+0100) Subject: zsh: remove + spread theme-and-appearance.zsh X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/2ecf015bfa7f10eab50aeb748e687ee3dfb71356 zsh: remove + spread theme-and-appearance.zsh --- diff --git a/aliases b/aliases index e64bb85..92baf77 100644 --- a/aliases +++ b/aliases @@ -2,6 +2,7 @@ # this will allow aliasing any command after sudo alias sudo='sudo ' +alias ls='ls --color=auto' alias l='ls --color=auto -F' alias ls='ls --color=auto -F' alias ll='ls -lh --color=auto -F' diff --git a/zsh/lib/misc.zsh b/zsh/lib/misc.zsh index 3de8a53..8667e83 100644 --- a/zsh/lib/misc.zsh +++ b/zsh/lib/misc.zsh @@ -12,4 +12,7 @@ setopt long_list_jobs export PAGER="less" export LESS="-SR" +# ls colors +eval $(dircolors $XDG_CONFIG_HOME/dircolors) + export LC_CTYPE=$LANG diff --git a/zsh/lib/prompt.zsh b/zsh/lib/prompt.zsh index 4f31348..0334516 100644 --- a/zsh/lib/prompt.zsh +++ b/zsh/lib/prompt.zsh @@ -1,3 +1,7 @@ +# Setup the prompt with pretty colors +setopt prompt_subst +autoload colors; colors; + hostcolor=green [[ $(hostname) == "tardis" ]] && hostcolor=red diff --git a/zsh/lib/theme-and-appearance.zsh b/zsh/lib/theme-and-appearance.zsh deleted file mode 100644 index 4900895..0000000 --- a/zsh/lib/theme-and-appearance.zsh +++ /dev/null @@ -1,28 +0,0 @@ -# ls colors -autoload colors; colors; -eval $(dircolors $XDG_CONFIG_HOME/dircolors) - -# Enable ls colors -ls='ls --color=auto' - -setopt no_beep -setopt multios - -if [[ x$WINDOW != x ]] -then - SCREEN_NO="%B$WINDOW%b " -else - SCREEN_NO="" -fi - -# Apply theming defaults -PS1="%n@%m:%~%# " - -# git theming default: Variables for theming the git info prompt -ZSH_THEME_GIT_PROMPT_PREFIX="git:(" # Prefix at the very beginning of the prompt, before the branch name -ZSH_THEME_GIT_PROMPT_SUFFIX=")" # At the very end of the prompt -ZSH_THEME_GIT_PROMPT_DIRTY="*" # Text to display if the branch is dirty -ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is clean - -# Setup the prompt with pretty colors -setopt prompt_subst