-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshvar
85 lines (70 loc) · 1.91 KB
/
zshvar
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Path to your oh-my-zsh installation.
export ZSH="${HOME}/.oh-my-zsh"
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]];
then
export EDITOR='vi'
else
export EDITOR=$VISUAL
fi
if [[ -d ${HOME}/.termux ]];
then
export OS="android"
fi
if [[ -d ${HOME}/.ubuntu ]];
then
export OS="ubuntu"
fi
if [[ -d ${HOME}/.macos ]];
then
export OS="macos"
fi
# User configuration
export rc="${HOME}/.rc"
export XDG_CONFIG_HOME="${HOME}/.config"
export config="${HOME}/.config"
export zsh="${HOME}/.zsh"
export zshrc="${HOME}/.zshrc"
export zshalias="${HOME}/.zsh/alias.zsh"
export zshvar="${HOME}/.zsh/variables.zsh"
export zshfunctions="${HOME}/.zsh/functions.zsh"
export zshflags="${HOME}/.zsh/flags.zsh"
export vim="${config}/nvim"
export vimrc="${config}/nvim/init.vim"
export VISUAL="nvim"
export SSH_KEY_PATH="~/.ssh/id_rsa"
# You may need to manually set your language environment
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vi'
else
export EDITOR=$VISUAL
fi
if { [ "$OS" = "macos" ]; }
then
# Mac OS
export PATH="/opt/homebrew/opt/python@3.10/libexec/bin:/opt/homebrew/bin:${HOME}/.conda/bin:${HOME}/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:$PATH"
export TERM="xterm-256color-italic"
# export USR_JAVA_LIB_DIR="~/.javalib"
# export CLASSPATH="$CLASSPATH:$USR_JAVA_LIB_DIR:./"
# export GROOVY_HOME="/usr/local/opt/groovy/libexec"
fi
if { [ "$OS" = "android" ]; }
then
# Android
export PATH="/data/data/com.termux/files/usr/bin:$PATH"
fi
if { [ "$OS" = "ubuntu" ]; }
then
# Ubuntu
export GOROOT="/usr/lib/go"
export PATH="/home/ubuntu/.conda/bin:${HOME}/.go/bin:${GOROOT}/bin:${HOME}/.bin:$PATH"
if ! { [ -n "$TMUX" ]; }
then
export TERM="xterm-256color"
else
export TERM="tmux-256color"
fi
fi