From 5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 3 May 2011 16:57:50 +0200 Subject: Rename 'gentoo' prompt to 'necoro' --- .zsh/functions/prompt_gentoo_setup | 33 --------------------------------- .zsh/functions/prompt_necoro_setup | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 .zsh/functions/prompt_gentoo_setup create mode 100644 .zsh/functions/prompt_necoro_setup (limited to '.zsh/functions') diff --git a/.zsh/functions/prompt_gentoo_setup b/.zsh/functions/prompt_gentoo_setup deleted file mode 100644 index 0d071e9..0000000 --- a/.zsh/functions/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 () { - prompt_gentoo_prompt=${1:-'blue'} - prompt_gentoo_user=${2:-'green'} - prompt_gentoo_root=${3:-'red'} - - if [ "$USER" = 'root' ] - then - base_prompt="%B%F{$prompt_gentoo_root}%m%k " - else - base_prompt="%B%F{$prompt_gentoo_user}%n@%m%k " - fi - post_prompt="%b%f%k" - - #setopt noxtrace localoptions - - path_prompt="%B%F{$prompt_gentoo_prompt}%1~" - PS1="$base_prompt$path_prompt %# $post_prompt" - PS2="$base_prompt$path_prompt %_> $post_prompt" - PS3="$base_prompt$path_prompt ?# $post_prompt" -} - -prompt_gentoo_setup "$@" diff --git a/.zsh/functions/prompt_necoro_setup b/.zsh/functions/prompt_necoro_setup new file mode 100644 index 0000000..16d3654 --- /dev/null +++ b/.zsh/functions/prompt_necoro_setup @@ -0,0 +1,33 @@ +# gentoo prompt theme + +prompt_necoro_help () { + cat <<'EOF' +This prompt is color-scheme-able. You can invoke it thus: + + prompt necoro [ [ []]] + +EOF +} + +prompt_necoro_setup () { + prompt_necoro_prompt=${1:-'blue'} + prompt_necoro_user=${2:-'green'} + prompt_necoro_root=${3:-'red'} + + if [ "$USER" = 'root' ] + then + base_prompt="%B%F{$prompt_necoro_root}%m%k " + else + base_prompt="%B%F{$prompt_necoro_user}%n@%m%k " + fi + post_prompt="%b%f%k" + + #setopt noxtrace localoptions + + path_prompt="%B%F{$prompt_necoro_prompt}%1~" + PS1="$base_prompt$path_prompt %# $post_prompt" + PS2="$base_prompt$path_prompt %_> $post_prompt" + PS3="$base_prompt$path_prompt ?# $post_prompt" +} + +prompt_necoro_setup "$@" -- cgit v1.2.3-54-g00ecf