diff --git a/README b/README deleted file mode 100644 index f35b380..0000000 --- a/README +++ /dev/null @@ -1,20 +0,0 @@ -# @author Sebastian Tramp -# @license http://opensource.org/licenses/gpl-license.php - -Due to many requests I share my zsh configuration compilation. -Copy the repository to ~/.zsh and run 'make install' once -(or link the ~/.config/zsh/zshrc manually to ~/.zshrc) - -### File description -$ZSH_CONFIG/README - This file -$ZSH_CONFIG/Makefile - make-config to run with 'make install' -$ZSH_CONFIG/aliases - alias definitions which can be edited/modified with 'aedit' -$ZSH_CONFIG/completion - tab completion configuration -$ZSH_CONFIG/functions - functions and key bindings to that functions -$ZSH_CONFIG/options - shell options as history size, general keyindings, etc -$ZSH_CONFIG/prompt - the prompt definition -$ZSH_CONFIG/zshrc - the main RC file (will be linked to ~/.zshrc) - -### These files are not in the repository but will be created -$ZSH_CACHE/history - the history file (shared for all zsh instances) - diff --git a/README.md b/README.md new file mode 100644 index 0000000..d5ec869 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +author +:: Sebastian Tramp +license +:: http://opensource.org/licenses/gpl-license.php + +Due to many requests I share my zsh configuration compilation. +Copy the repository to ~/.zsh and run 'make install' once +(or link the ~/.config/zsh/zshrc manually to ~/.zshrc) + +File description +================ + + $ZSH_CONFIG/README - This file + $ZSH_CONFIG/Makefile - make-config to run with 'make install' + $ZSH_CONFIG/aliases - alias definitions which can be edited/modified with 'aedit' + $ZSH_CONFIG/completion - tab completion configuration + $ZSH_CONFIG/functions - functions and key bindings to that functions + $ZSH_CONFIG/options - shell options as history size, general keyindings, etc + $ZSH_CONFIG/prompt - the prompt definition + $ZSH_CONFIG/zshrc - the main RC file (will be linked to ~/.zshrc) + +These files are not in the repository but will be created + + $ZSH_CACHE/history - the history file (shared for all zsh instances) diff --git a/environment.zsh b/environment.zsh index e9c1914..a29bb40 100644 --- a/environment.zsh +++ b/environment.zsh @@ -3,6 +3,8 @@ # # Basic environment settings related to the zsh compiliation (not private) +source /etc/profile + # XDG Base Directory Specification # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html export XDG_CONFIG_HOME="$HOME/.config" @@ -10,11 +12,3 @@ export XDG_CACHE_HOME="$HOME/.cache" export ZSH_CONFIG="$XDG_CONFIG_HOME/zsh" export ZSH_CACHE="$XDG_CACHE_HOME/zsh" mkdir -p $ZSH_CACHE - -# executable search path -export PATH=/usr/local/sbin:$PATH -export PATH=$HOME/.local/bin:$PATH -export PATH=$HOME/.local/sbin:$PATH - -# https://github.com/mxcl/homebrew/issues/11182 -export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH diff --git a/prompt.zsh b/prompt.zsh index 591fca3..da73090 100644 --- a/prompt.zsh +++ b/prompt.zsh @@ -70,14 +70,15 @@ function promptSetup () { # we are on our home desktop else # we are outside on a server - PR_SIGN+="`hostname` " + PR_SIGN+="%F{green}$LOGNAME@`hostname`%F{white} " fi + # full path + PR_SIGN+="%F{blue}%~%F{white} " + # setup the main sign if [[ $CURRENT_USER == 'root' ]]; then PR_SIGN+="☠" - elif [[ $CURRENT_USER == 'vagrant' ]]; then - PR_SIGN+="𝓥" else PR_SIGN+="∴" fi @@ -94,7 +95,7 @@ function promptSetup () { PS1+="%{$terminfo_down_sc$VCS_LINE$terminfo[rc]%}" # the second line PS1+=$PR_STITLE # tmux title if present PS1+=$PR_VCSSIGN # version control part if present - PS1+=%(?..'%F{136}%B%'?) # output last error number if present + PS1+=%(?..'%F{136}%B%'?) # output last error number if present PS1+=$PR_SIGN # the user sign PS1+=" " # an additional space