common: don't use gentoo prompt anymore
This commit is contained in:
parent
f1805e7636
commit
d5c98eb13c
@ -10,4 +10,3 @@ zstyle ':completion::complete:*' use-cache 1
|
|||||||
# promt
|
# promt
|
||||||
autoload -U promptinit
|
autoload -U promptinit
|
||||||
promptinit
|
promptinit
|
||||||
prompt gentoo
|
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
# gentoo prompt theme
|
|
||||||
|
|
||||||
prompt_gentoo_help () {
|
|
||||||
cat <<'EOF'
|
|
||||||
This prompt is color-scheme-able. You can invoke it thus:
|
|
||||||
|
|
||||||
prompt gentoo [<promptcolor> [<usercolor> [<rootcolor>]]]
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt_gentoo_setup () {
|
|
||||||
local prompt_gentoo_prompt=${1:-'blue'}
|
|
||||||
local prompt_gentoo_user=${2:-'green'}
|
|
||||||
local prompt_gentoo_root=${3:-'red'}
|
|
||||||
|
|
||||||
if [ "$USER" = 'root' ]
|
|
||||||
then
|
|
||||||
local base_prompt="%B%F{$prompt_gentoo_root}%m%k "
|
|
||||||
else
|
|
||||||
local base_prompt="%B%F{$prompt_gentoo_user}%n@%m%k "
|
|
||||||
fi
|
|
||||||
local post_prompt="%b%f%k"
|
|
||||||
|
|
||||||
#setopt noxtrace localoptions
|
|
||||||
|
|
||||||
local path_prompt="%B%F{$prompt_gentoo_prompt}%1~"
|
|
||||||
typeset -g PS1="$base_prompt$path_prompt %# $post_prompt"
|
|
||||||
typeset -g PS2="$base_prompt$path_prompt %_> $post_prompt"
|
|
||||||
typeset -g PS3="$base_prompt$path_prompt ?# $post_prompt"
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt_gentoo_setup "$@"
|
|
@ -25,7 +25,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- { src: '.zshrc', dest: '/root/.zshrc' }
|
- { src: '.zshrc', dest: '/root/.zshrc' }
|
||||||
- { src: '.zshrc.local', dest: '/root/.zshrc.local' }
|
- { src: '.zshrc.local', dest: '/root/.zshrc.local' }
|
||||||
- { src: 'prompt_gentoo_setup', dest: '/usr/local/share/zsh/5.6.2/functions/Prompts/prompt_gentoo_setup' }
|
|
||||||
|
|
||||||
- name: Create BKCA certificate directory
|
- name: Create BKCA certificate directory
|
||||||
file: path="{{ item }}" state=directory
|
file: path="{{ item }}" state=directory
|
||||||
|
@ -8,8 +8,14 @@
|
|||||||
- less
|
- less
|
||||||
- rsync
|
- rsync
|
||||||
- vim-nox
|
- vim-nox
|
||||||
|
- zsh
|
||||||
|
|
||||||
- name: Configure misc software
|
- name: Configure misc software
|
||||||
copy: src={{ item.src }} dest={{ item.dest }}
|
copy: src={{ item.src }} dest={{ item.dest }}
|
||||||
with_items:
|
with_items:
|
||||||
|
- { src: '.zshrc', dest: '/root/.zshrc' }
|
||||||
|
- { src: '.zshrc.local', dest: '/root/.zshrc.local' }
|
||||||
- { src: 'vimrc.local', dest: '/etc/vim/vimrc.local' }
|
- { src: 'vimrc.local', dest: '/etc/vim/vimrc.local' }
|
||||||
|
|
||||||
|
- name: Set shell for root user
|
||||||
|
user: name=root shell=/bin/zsh
|
||||||
|
Loading…
Reference in New Issue
Block a user