add root configuration
This commit is contained in:
parent
aa6bf82476
commit
3dcfa93301
4 changed files with 35 additions and 0 deletions
2
root.completions
Normal file
2
root.completions
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Some completions
|
||||||
|
compctl -K _completemarks j
|
||||||
7
root.plugins
Normal file
7
root.plugins
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# specify plugins here
|
||||||
|
zgen oh-my-zsh
|
||||||
|
zgen oh-my-zsh plugins/colored-man-pages
|
||||||
|
zgen oh-my-zsh plugins/colorize
|
||||||
|
zgen oh-my-zsh plugins/git
|
||||||
|
zgen oh-my-zsh plugins/jump
|
||||||
|
zgen oh-my-zsh plugins/systemadmin
|
||||||
7
root.theme
Normal file
7
root.theme
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
PROMPT='%{${fg_bold[white]}%}%n%{$reset_color%}%{${fg[white]}%}@%m $%{$reset_color%} '
|
||||||
|
RPROMPT='%{$fg[white]%}%~$(git_prompt_info)%{$reset_color%}%(?,,%{${fg_bold[red]}%} [%?]%{$reset_color%})'
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg_bold[green]%}("
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[green]%})%{$fg_bold[red]%}!%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%})"
|
||||||
19
root.zsh
Normal file
19
root.zsh
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
# bip at command end, resize font
|
||||||
|
function precmd() {
|
||||||
|
echo -n -e "\a"
|
||||||
|
}
|
||||||
|
|
||||||
|
# do not share history between terms...
|
||||||
|
unsetopt share_history
|
||||||
|
|
||||||
|
# Everyday aliases
|
||||||
|
j() {if [ $# -eq 0 ]; then marks; else jump $@; fi}
|
||||||
|
|
||||||
|
# Some exports
|
||||||
|
export EDITOR=emacs
|
||||||
|
export LESS=-cex2MRX
|
||||||
|
export LESSOPEN='|~/.lessfilter %s'
|
||||||
|
export LOGCHECK=60
|
||||||
|
export READNULLCMD=${PAGER:-/usr/bin/pager}
|
||||||
|
export WATCH=all
|
||||||
|
export WATCHFMT="%n has %a %l from %M"
|
||||||
Loading…
Reference in a new issue