1
0
Fork 0

Settings and tab title.

pull/980/head
Lance Helsten 10 years ago
parent 9f8f0cdc83
commit 234d5c0f7b

@ -157,7 +157,7 @@ function prompt_paradox_setup {
PROMPT=' PROMPT='
${(e)$(prompt_paradox_build_prompt)} ${(e)$(prompt_paradox_build_prompt)}
${editor_info[keymap]} ' ${editor_info[keymap]} '
RPROMPT='%F{blue}[%F{green}%D{%H:%M:%S}%F{blue}]%f' RPROMPT='%F{blue}[%F{green}%D{%Y-%m-%dT%H:%M:%S}%F{blue}]%f'
SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? ' SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
} }

@ -28,9 +28,9 @@ if (( $+commands[fortune] )); then
fi fi
fi fi
echo "Last logins:" #echo "Last logins:"
last -5 $USER #last -5 $USER
echo #echo
echo "$BASH $BASH_VERSION" echo "$BASH $BASH_VERSION"
date -u +"%a %e %b %Y %H:%M:%S GMT" date -u +"%a %e %b %Y %H:%M:%S GMT"

@ -21,7 +21,8 @@ else
declare RPS1='%DT%*' declare RPS1='%DT%*'
fi fi
set -o vi setopt histsubstpattern
setopt vi
# General Settings # General Settings
declare -x CALENDAR_DIR="/usr/share/calendar" declare -x CALENDAR_DIR="/usr/share/calendar"
@ -34,7 +35,7 @@ alias ls="ls -FGh"
alias su="su -m" alias su="su -m"
alias ping="ping -c 4" alias ping="ping -c 4"
alias sed="sed -E" alias sed="sed -E"
alias grep="grep -nHEI --color --exclude-dir=\.git --exclude-dir=\.hg --exclude-dir=\.svn --exclude-dir=build --exclude-dir=dist --exclude=tags" alias grep="grep -anHE --color --exclude-dir=\.git --exclude-dir=\.hg --exclude-dir=\.svn --exclude-dir=build --exclude-dir=dist --exclude=tags"
if [ "$ZSH_VERSION" ]; then if [ "$ZSH_VERSION" ]; then
autoload -U compinit autoload -U compinit
@ -42,11 +43,25 @@ if [ "$ZSH_VERSION" ]; then
# cd hook # cd hook
autoload -U add-zsh-hook autoload -U add-zsh-hook
title-bar() {
[[ -t 1 ]] || return
case $TERM in
sun-cmd)
print -Pn "\e]l%~\e\\"
;;
*xterm*|rxvt|(dt|k|E)term)
print -Pn "\e]1;%~\a"
;;
esac
}
add-zsh-hook precmd title-bar
load-local-conf() { load-local-conf() {
# check file exists, is regular file and is readable: # check file exists, is regular file and is readable:
if [[ -f .sh_source && -r .sh_source ]]; then if [[ -f .sh_source && -r .sh_source ]]; then
source .sh_source source .sh_source
fi fi
} }
add-zsh-hook chpwd load-local-conf add-zsh-hook chpwd load-local-conf
fi fi

Loading…
Cancel
Save