forked from cristianstu/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
executable file
·57 lines (42 loc) · 1.82 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git git-prompt zsh-syntax-highlighting history-substring-search ng web-search common-aliases zsh-completions copyfile history fnm z zsh-autosuggestions sudo)
source $ZSH/oh-my-zsh.sh
source $HOME/.bash_aliases
# Custom prompt format: add rvm & nvm prompts. Also add line break
node-prompt() {
echo "$fg[white]|$fg[green]node-${"$(fnm current)":1}"
}
ZSH_THEME_GIT_PROMPT_CONFLICTS="%{$fg[red]%}%{✘%G%}"
ZSH_THEME_GIT_PROMPT_CHANGED="%{$fg[blue]%}%{+%G%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}%{✓%G%}"
PROMPT='%B%m@%{$fg[blue]%}$(rvm-prompt)$(node-prompt)%{$fg[white]%}%~%b$(git_super_status)'$'\n''() -> '
# Clear right prompt
RPROMPT=''
# User configuration
export ANDROID_HOME="$HOME/Android/Sdk"
export ANDROID_SDK_ROOT="$HOME/Android/Sdk"
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
export PATH=${PATH}:~/.local/bin
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$ANDROID_HOME/tools/bin:$ANDROID_HOME/tools:$PATH
# fnm
export PATH=~/.local/share/fnm:${PATH}
#eval "`fnm env`"
eval "$(fnm env --use-on-cd)"
export QT_QPA_PLATFORM=""
# for zsh-completions plugin (it is a bit slow)
#autoload -U compinit && compinit
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
bindkey '^x' autosuggest-execute
# pnpm
export PNPM_HOME="/home/matias/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
PATH=~/.console-ninja/.bin:$PATH