From 3dcfa93301e42036d9225e0661e24acb7696020a Mon Sep 17 00:00:00 2001 From: maudin Date: Wed, 29 Apr 2020 14:08:57 +0200 Subject: [PATCH] add root configuration --- root.completions | 2 ++ root.plugins | 7 +++++++ root.theme | 7 +++++++ root.zsh | 19 +++++++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 root.completions create mode 100644 root.plugins create mode 100644 root.theme create mode 100644 root.zsh diff --git a/root.completions b/root.completions new file mode 100644 index 0000000..014ce34 --- /dev/null +++ b/root.completions @@ -0,0 +1,2 @@ +# Some completions +compctl -K _completemarks j diff --git a/root.plugins b/root.plugins new file mode 100644 index 0000000..1b614a6 --- /dev/null +++ b/root.plugins @@ -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 diff --git a/root.theme b/root.theme new file mode 100644 index 0000000..0ebb8ec --- /dev/null +++ b/root.theme @@ -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]%})" diff --git a/root.zsh b/root.zsh new file mode 100644 index 0000000..e401c5d --- /dev/null +++ b/root.zsh @@ -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"