environment.zsh: source /etc/profile instead static PATH. README -> README.md. prompt.zsh: logname, %~ (current path) added

This commit is contained in:
Denis Knauf 2013-07-09 15:54:13 +02:00
parent e03d0d1574
commit 8e14fac963
4 changed files with 31 additions and 32 deletions

20
README
View file

@ -1,20 +0,0 @@
# @author Sebastian Tramp <mail@sebastian.tramp.name>
# @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)

24
README.md Normal file
View file

@ -0,0 +1,24 @@
author
:: Sebastian Tramp <mail@sebastian.tramp.name>
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)

View file

@ -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

View file

@ -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