-
Notifications
You must be signed in to change notification settings - Fork 1
/
environment.sh
38 lines (30 loc) · 1.25 KB
/
environment.sh
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
export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:$HOME/.rbenv/bin:/usr/games:$PATH
export PATH=$HOME/.rbenv/bin:$PATH # rbenv
export PATH=.git/safe/../../bin:$PATH # git-safe
export PATH=$HOME/my_folder/bin/diff-so-fancy:$PATH # diff-so-fancy
# variables
export DOTFILES_VIM=~/dotfiles/vim/ # dotfiles vim configuration location
export VISUAL=nvim
export EDITOR=ex
export GREP_TOOL=rg
export SSH_KEY_PATH=~/.ssh/id_rsa
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # colored GCC warnings and errors
export TERM=xterm-256color # use 256 colors
# fuzzy search
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --glob "!.git/*"'
# logins
export GITHUB_USERNAME=ARtoriouSs
export GITLAB_USERNAME=ARtoriouS
export BITBACKET_USERNAME=ARtoriouS
# directories and files access
export MY_FOLDER=~/my_folder
export PROJECTS=~/my_folder/projects
export TODO=~/todo.yml
### initializations
# dircolors
if [ -x /usr/bin/dircolors ]; then
test -r $HOME/.dircolors && eval "$(dircolors -b $HOME/.dircolors)" || eval "$(dircolors -b)"
fi
eval "$(rbenv init -)" # rbenv
test -s "$HOME/.kiex/scripts/kiex" && source "$HOME/.kiex/scripts/kiex" # kiex
test -s "$HOME/.cargo/env" && source "$HOME/.cargo/env" # cargo