summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorSanto Cariotti <dcariotti24@gmail.com>2020-09-09 18:27:48 +0200
committerGitHub <noreply@github.com>2020-09-09 18:27:48 +0200
commit4d1d005b7f08d24e8e985dcc3a7779f0493f7c6c (patch)
tree7565ce454c72baa2022d26d2433378a27fdae20c /zsh
parent3fa7ad91d71e7b60acd61f9dfac0613beaab7e35 (diff)
Update .zshrc
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc26
1 files changed, 13 insertions, 13 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 261ee5c..c9db4e6 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -2,18 +2,17 @@
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
-export ZSH="/Users/dcariotti/.oh-my-zsh"
+export ZSH="/home/dcariotti/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
-# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
-#ZSH_THEME="robbyrussell"
-ZSH_THEME="bureau"
+# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
+#ZSH_THEME="bureau"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
-# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
+# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
@@ -34,7 +33,7 @@ ZSH_THEME="bureau"
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line if pasting URLs and other text is messed up.
-# DISABLE_MAGIC_FUNCTIONS=true
+# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
@@ -65,8 +64,8 @@ ZSH_THEME="bureau"
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
-# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
-# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
+# Standard plugins can be found in $ZSH/plugins/
+# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
@@ -98,9 +97,10 @@ source $ZSH/oh-my-zsh.sh
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
-[ -f "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env" ] && source "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env"
-export PATH="/usr/local/sbin:$PATH"
-if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
- tmux attach -t default || tmux new -s default
-fi
+[[ $TERM != "screen" ]] && exec tmux
+eval "$(starship init zsh)"
+
+export NVM_DIR="$HOME/.nvm"
+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion