mirror of https://github.com/akelge/zsh
Light changes to prompt
files with .off extension are ignored Disabled coreutils and dsFunctions on Darwin
This commit is contained in:
parent
01d2f341ef
commit
0923914a13
|
@ -1,3 +1,5 @@
|
||||||
|
setopt ALL_EXPORT
|
||||||
|
|
||||||
setopt ALWAYS_TO_END
|
setopt ALWAYS_TO_END
|
||||||
setopt APPEND_HISTORY
|
setopt APPEND_HISTORY
|
||||||
setopt AUTONAMEDIRS
|
setopt AUTONAMEDIRS
|
||||||
|
@ -12,13 +14,18 @@ setopt HIST_NO_STORE
|
||||||
setopt HIST_REDUCE_BLANKS
|
setopt HIST_REDUCE_BLANKS
|
||||||
setopt LIST_TYPES
|
setopt LIST_TYPES
|
||||||
setopt LONG_LIST_JOBS
|
setopt LONG_LIST_JOBS
|
||||||
|
|
||||||
setopt no_BEEP
|
setopt no_BEEP
|
||||||
setopt no_HUP
|
setopt no_HUP
|
||||||
setopt NOTIFY
|
setopt NOTIFY
|
||||||
setopt PATH_DIRS
|
setopt PATH_DIRS
|
||||||
setopt SHORT_LOOPS
|
setopt SHORT_LOOPS
|
||||||
|
|
||||||
|
setopt prompt_subst
|
||||||
|
|
||||||
setopt AUTO_CD
|
setopt AUTO_CD
|
||||||
setopt AUTO_MENU
|
setopt AUTO_MENU
|
||||||
setopt no_MENU_COMPLETE
|
setopt no_MENU_COMPLETE
|
||||||
setopt AUTO_LIST
|
setopt AUTO_LIST
|
||||||
|
|
||||||
|
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||||
|
|
|
@ -3,9 +3,6 @@
|
||||||
|
|
||||||
## Vars used always
|
## Vars used always
|
||||||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin:."
|
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin:."
|
||||||
SAVEHIST=500
|
|
||||||
HISTFILE=~/.history
|
|
||||||
HISTSIZE=10000
|
|
||||||
LANG="it_IT.UTF-8"
|
LANG="it_IT.UTF-8"
|
||||||
TZ='Europe/Rome'
|
TZ='Europe/Rome'
|
||||||
MIBS=all
|
MIBS=all
|
||||||
|
@ -15,15 +12,21 @@ LOGD=/var/log
|
||||||
[ -z "$PS1" ] && return
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
## Vars only for interactive sessions
|
## Vars only for interactive sessions
|
||||||
|
SAVEHIST=500
|
||||||
|
HISTFILE=~/.history
|
||||||
|
HISTSIZE=10000
|
||||||
|
|
||||||
PYTHONSTARTUP=~/.pythonrc.py
|
PYTHONSTARTUP=~/.pythonrc.py
|
||||||
LOGCHECK=30
|
LOGCHECK=30
|
||||||
REPORTTIME=15
|
REPORTTIME=15
|
||||||
WATCH=notme
|
WATCH=notme
|
||||||
WATCHFMT="%n %a %l (%m) at %t."
|
WATCHFMT="%n %a %l (%m) at %t."
|
||||||
|
|
||||||
# Hack for svn
|
|
||||||
EDITOR=vim
|
EDITOR=vim
|
||||||
VISUAL=vim
|
VISUAL=vim
|
||||||
|
#
|
||||||
|
# Hack for svn
|
||||||
|
# export SVN_EDITOR=${VISUAL}
|
||||||
|
|
||||||
# Set umask to collaborative mode
|
# Set umask to collaborative mode
|
||||||
umask 002
|
umask 002
|
||||||
|
|
|
@ -8,7 +8,4 @@ bindkey "\eOA" history-search-backward
|
||||||
bindkey "\eOB" history-search-forward
|
bindkey "\eOB" history-search-forward
|
||||||
bindkey "\e[A" history-search-backward
|
bindkey "\e[A" history-search-backward
|
||||||
bindkey "\e[B" history-search-forward
|
bindkey "\e[B" history-search-forward
|
||||||
bindkey "\e[5D" backward-word
|
|
||||||
bindkey "\e[5C" forward-word
|
|
||||||
bindkey "" vi-backward-kill-word
|
|
||||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||||
|
|
|
@ -7,7 +7,9 @@ fi
|
||||||
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
|
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
|
||||||
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
|
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
|
||||||
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
|
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
|
||||||
(( count = $count + 1 ))
|
# (( count = $count + 1 ))
|
||||||
done
|
done
|
||||||
PR_NO_COLOR="%{$terminfo[sgr0]%}"
|
PR_NO_COLOR="%{$terminfo[sgr0]%}"
|
||||||
|
|
||||||
|
unset color
|
||||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
|
@ -2,7 +2,12 @@
|
||||||
# Setup PROMPT
|
# Setup PROMPT
|
||||||
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
|
if [ ${TERM[0,5]} = "xterm" ] || [ ${TERM} = "rxvt" ]; then
|
||||||
# We are on xterminal
|
# We are on xterminal
|
||||||
PS1="%{]2;%n@%m:%.%}%{]1; %m:%. %}%B<%l> %~ %#%b "
|
W="%{]2;::: %n at %m in %. :::%}"
|
||||||
|
I="%{]1;%m::%.%}"
|
||||||
|
L="%B${PR_BLUE}%3~ %#%b "
|
||||||
|
PS1="$W$I$L"
|
||||||
|
unset W I L
|
||||||
|
|
||||||
else
|
else
|
||||||
# We are not on xterminal
|
# We are not on xterminal
|
||||||
PS1="%B[%l] %n@%m:%~ %#%b "
|
PS1="%B[%l] %n@%m:%~ %#%b "
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
# Darwin/OSX
|
# Darwin/OSX
|
||||||
# Environment and aliases for OSX
|
# Environment and aliases for OSX
|
||||||
export LSCOLORS="GxgxcxdxCxegedabagacad"
|
export LSCOLORS="GxgxcxdxCxegedabagacad"
|
||||||
alias aquamacs='open -a Aquamacs\ Emacs'
|
|
||||||
alias ldd='otool -L'
|
alias ldd='otool -L'
|
||||||
alias ls='ls -F -G'
|
alias ls='ls -F -G'
|
||||||
alias skill=killall
|
alias skill=killall
|
||||||
alias lsrebuild='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user'
|
alias lsrebuild='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user'
|
||||||
alias ipython='ipython-2.6 '
|
|
||||||
|
|
||||||
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
|
alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
|
||||||
alias mvim='mvim --remote-tab-silent '
|
# alias mvim='mvim --remote-tab-silent '
|
||||||
|
alias mvim='open -a MacVim '
|
||||||
|
|
||||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||||
|
|
Loading…
Reference in New Issue