diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2011-05-03 16:57:50 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2011-05-03 16:57:51 +0200 |
commit | 5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6 (patch) | |
tree | b053bc18ae9d59bac3690372a66da68448342448 /.zsh | |
parent | 6951e6a5ad80e8f07afc49a9d12655ac89dda249 (diff) | |
download | dotfiles-5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6.tar.gz dotfiles-5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6.tar.bz2 dotfiles-5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6.zip |
Rename 'gentoo' prompt to 'necoro'
Diffstat (limited to '')
-rw-r--r-- | .zsh/functions/prompt_gentoo_setup | 33 | ||||
-rw-r--r-- | .zsh/functions/prompt_necoro_setup | 33 | ||||
-rw-r--r-- | .zsh/zshrc | 2 |
3 files changed, 34 insertions, 34 deletions
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 [<promptcolor> [<usercolor> [<rootcolor>]]] - -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 [<promptcolor> [<usercolor> [<rootcolor>]]] + +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 "$@" @@ -118,7 +118,7 @@ promptinit local prompt_color="green red" [[ -n "$SSH_CLIENT" ]] && prompt_color="yellow cyan" -prompt gentoo blue ${=prompt_color} +prompt necoro blue ${=prompt_color} # remove RPROMPT when command finished setopt transient_rprompt |