summaryrefslogtreecommitdiff
path: root/.zsh/functions
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2011-05-03 16:57:50 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2011-05-03 16:57:51 +0200
commit5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6 (patch)
treeb053bc18ae9d59bac3690372a66da68448342448 /.zsh/functions
parent6951e6a5ad80e8f07afc49a9d12655ac89dda249 (diff)
downloaddotfiles-5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6.tar.gz
dotfiles-5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6.tar.bz2
dotfiles-5ac5a5c35b70fdafaccb080d2595b6a0624ee1a6.zip
Rename 'gentoo' prompt to 'necoro'
Diffstat (limited to '.zsh/functions')
-rw-r--r--.zsh/functions/prompt_gentoo_setup33
-rw-r--r--.zsh/functions/prompt_necoro_setup33
2 files changed, 33 insertions, 33 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 "$@"