diff --git a/roles/common/files/.zshrc.local b/roles/common/files/.zshrc.local index ba47109..c137044 100644 --- a/roles/common/files/.zshrc.local +++ b/roles/common/files/.zshrc.local @@ -10,4 +10,3 @@ zstyle ':completion::complete:*' use-cache 1 # promt autoload -U promptinit promptinit -prompt gentoo diff --git a/roles/common/files/prompt_gentoo_setup b/roles/common/files/prompt_gentoo_setup deleted file mode 100644 index 046e2d8..0000000 --- a/roles/common/files/prompt_gentoo_setup +++ /dev/null @@ -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 [ [ []]] - -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 "$@" diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 15ad164..75cdc03 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -26,7 +26,6 @@ - { src: '.zshrc', dest: '/root/.zshrc' } - { src: '.zshrc.local', dest: '/root/.zshrc.local' } - { src: 'motd', dest: '/etc/motd' } - - { src: 'prompt_gentoo_setup', dest: '/usr/share/zsh/functions/Prompts/prompt_gentoo_setup' } - { src: 'vimrc.local', dest: '/etc/vim/vimrc.local' } - name: Set shell for root user