summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc29
1 files changed, 29 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
new file mode 100644
index 0000000..5c5c555
--- /dev/null
+++ b/.zshrc
@@ -0,0 +1,29 @@
+# Aliases
+alias nano='micro'
+alias ls='ls -Ga '
+
+eval "$(/opt/homebrew/bin/brew shellenv)"
+export COWPATH="$HOME/.config/cows"
+
+# Clippy command handler
+command_not_found_handler() {
+ echo "'$1' does not exist." | cowsay -f clippy >&2
+ return 127
+}
+
+# Prompt
+autoload -Uz vcs_info
+zstyle ':vcs_info:*' enable git
+zstyle ':vcs_info:git:*' check-for-changes true
+zstyle ':vcs_info:git:*' stagedstr '*'
+zstyle ':vcs_info:git:*' unstagedstr '*'
+zstyle ':vcs_info:git:*' formats ' %F{yellow}%b%u%c%f'
+zstyle ':vcs_info:git:*' actionformats ' %F{yellow}%b|%a%u%c%f'
+precmd() { vcs_info }
+setopt PROMPT_SUBST
+PROMPT='%B%F{cyan}%2~%f%b${vcs_info_msg_0_} %B%F{red}%%%f%b '
+
+# Startup
+fastfetch
+echo ""
+#fortune | cowsay \ No newline at end of file