summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/aliases.zsh1
-rw-r--r--themes/cypher.zsh-theme4
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/aliases.zsh b/lib/aliases.zsh
index cd17781a6..6f6c614f7 100644
--- a/lib/aliases.zsh
+++ b/lib/aliases.zsh
@@ -8,6 +8,7 @@ alias ss='thin --stats "/thin/stats" start'
alias mr='mate CHANGELOG app config db lib public script spec test'
alias .='pwd'
alias ...='cd ../..'
+alias -- -='cd -'
alias _='sudo'
alias ss='sudo su -'
diff --git a/themes/cypher.zsh-theme b/themes/cypher.zsh-theme
new file mode 100644
index 000000000..36633da26
--- /dev/null
+++ b/themes/cypher.zsh-theme
@@ -0,0 +1,4 @@
+# Based on evan's prompt
+# Shows the exit status of the last command if non-zero
+# Uses "#" instead of "»" when running with elevated privileges
+PROMPT="%m %B%F{red}::%b %B%F{green}%3~%(0?. . %F{red}%? )%F{red}%(0!.#.»)%b%F{white} "