forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzshrc
executable file
·62 lines (44 loc) · 2 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
57
58
59
60
61
62
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
#export ZSH_TMUX_AUTOSTART=true
# 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 tmux ng web-search common-aliases zsh-completions history fnm z zsh-autosuggestions sudo)
source $ZSH/oh-my-zsh.sh
source $HOME/.bash_aliases
# User configuration
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=''
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$HOME/.local/bin"
# Snap
export PATH="/snap/bin:$PATH"
# fnm
export PATH="/home/cristian/.local/share/fnm:$PATH"
#export PATH="/home/cristian/.fnm:$PATH"
eval "$(fnm env --use-on-cd)"
#export JAVA_HOME="/usr/lib/jvm/default-java"
export JAVA_HOME="/home/cristian/apps/android-studio/jre/"
export ANDROID_HOME="$HOME/Android/Sdk"
export ANDROID_SDK_ROOT="$HOME/Android/Sdk"
export LC_ALL=en_US.UTF-8
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$ANDROID_HOME/tools/bin:$ANDROID_HOME/tools:$PATH"
export QT_QPA_PLATFORM=''
# for zsh-completions plugin (it is a bit slow)
#autoload -U compinit && compinit
source /home/cristian/.rvm/scripts/rvm
#test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
bindkey '^x' autosuggest-execute
#set dark color-scheme
gsettings set org.gnome.desktop.interface "color-scheme" "prefer-dark"
#Use vim for git hub cli
gh config set editor "vim"