aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zsh/aliases.sh1
-rw-r--r--zsh/.zsh/languages.sh6
-rw-r--r--zsh/.zsh/prompt.sh10
-rwxr-xr-xzsh/.zshrc1
4 files changed, 13 insertions, 5 deletions
diff --git a/zsh/.zsh/aliases.sh b/zsh/.zsh/aliases.sh
index 85e5d2a..6239f43 100644
--- a/zsh/.zsh/aliases.sh
+++ b/zsh/.zsh/aliases.sh
@@ -21,3 +21,4 @@ alias j="jobs -l"
alias l="ls -alG"
alias vi="nvim"
alias vim="nvim"
+alias tf="terraform"
diff --git a/zsh/.zsh/languages.sh b/zsh/.zsh/languages.sh
index afaf272..5c19fd7 100644
--- a/zsh/.zsh/languages.sh
+++ b/zsh/.zsh/languages.sh
@@ -8,6 +8,9 @@ export PATH="$GOROOT/bin:$PATH"
export PATH="$GOBIN:$PATH"
export GOPROXY="direct"
+# Rust
+. "$HOME/.cargo/env"
+
# Python
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
@@ -15,9 +18,6 @@ command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
-# Rust
-source "$HOME/.cargo/env"
-
# Node.js
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
diff --git a/zsh/.zsh/prompt.sh b/zsh/.zsh/prompt.sh
index 53d565f..ef015fd 100644
--- a/zsh/.zsh/prompt.sh
+++ b/zsh/.zsh/prompt.sh
@@ -1,3 +1,11 @@
#!/usr/bin/env zsh
-eval "$(starship init zsh)"
+autoload -Uz vcs_info
+zstyle ":vcs_info:*" enable git svn
+zstyle ':vcs_info:git:*' formats '%F{green}(%b)%f '
+precmd() {
+ vcs_info
+}
+setopt prompt_subst
+NEWLINE=$'\n'
+PROMPT=' %2~ ${vcs_info_msg_0_}%# '
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 25c530a..252ae2b 100755
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -4,7 +4,6 @@ source ~/.zsh/prompt.sh
source ~/.zsh/tmux.sh
source ~/.zsh/completion.sh
source ~/.zsh/history.sh
-
source ~/.zsh/env.sh
source ~/.zsh/path.sh
source ~/.zsh/languages.sh