aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--05-options.zsh4
l---------prompts/charm.zsh1
-rw-r--r--prompts/hadron.zsh3
-rw-r--r--prompts/strange.zsh21
4 files changed, 29 insertions, 0 deletions
diff --git a/05-options.zsh b/05-options.zsh
index 1b80a18..a7af1b6 100644
--- a/05-options.zsh
+++ b/05-options.zsh
@@ -31,5 +31,9 @@ _fix_cursor() {
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
+
setopt appendhistory
setopt histverify
+
+autoload -U +X compinit
+compinit -u
diff --git a/prompts/charm.zsh b/prompts/charm.zsh
new file mode 120000
index 0000000..f20da87
--- /dev/null
+++ b/prompts/charm.zsh
@@ -0,0 +1 @@
+strange.zsh \ No newline at end of file
diff --git a/prompts/hadron.zsh b/prompts/hadron.zsh
index 92ba6e4..700702a 100644
--- a/prompts/hadron.zsh
+++ b/prompts/hadron.zsh
@@ -1,5 +1,8 @@
GREEN="%{\x1b[01;32m%}"
PURPLE="%{\x1b[01;35m%}"
+PROMPT_END=" · "
+PROMPT_REND=" · "
+
PROMPT='$(simple_prompt ${GREEN} ${PURPLE})'
RPROMPT='$(simple_rprompt ${GREEN} ${PURPLE})'
diff --git a/prompts/strange.zsh b/prompts/strange.zsh
new file mode 100644
index 0000000..ee5a635
--- /dev/null
+++ b/prompts/strange.zsh
@@ -0,0 +1,21 @@
+PURPLE="%{\x1b[01;35m%}"
+RED="%{\x1b[01;31m%}"
+RESET="%{\x1b[0m%}"
+
+if [[ "$(hostname)" == *strange* ]] ; then
+ color1=$RED
+ color2=$PURPLE
+else
+ color1=$PURPLE
+ color2=$RED
+fi
+
+function wrap {
+ echo "${color1}[$1${color1}]\$${RESET} "
+}
+
+PROMPT_END=" "
+PROMPT_REND=" "
+
+PROMPT='$(wrap "$(simple_prompt $color1 $color2)")'
+RPROMPT='$(simple_rprompt $color1 $color2)'