-
Notifications
You must be signed in to change notification settings - Fork 0
/
.exports
113 lines (92 loc) · 2.22 KB
/
.exports
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/usr/bin/env bash
export_gpg() {
GPG_TTY=$(tty)
export GPG_TTY
}
export_path() {
export PATH="${HOME}/bin:${HOME}/.local/bin:/usr/local/bin:/usr/sbin:${PATH}"
}
export_snap() {
export PATH="${PATH}:/snap/bin"
}
export_history() {
export HISTSIZE='32768'
export HISTFILESIZE="${HISTSIZE}"
export HISTCONTROL='ignoreboth'
}
export_lang() {
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
}
export_editor() {
if [[ -n ${SSH_CONNECTION} ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
}
export_fzf() {
# https://github.com/junegunn/fzf#tips
# use fs to pipe into fzf
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
# To apply the command to CTRL-T as well
export FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}"
}
export_python() {
export PYTHONIOENCODING='UTF-8'
export PYENV_ROOT="${HOME}/.pyenv"
export PATH="${PYENV_ROOT}/bin:${PATH}"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
}
export_rust() {
export PATH="${HOME}/.cargo/bin:${PATH}"
}
export_ruby() {
export PATH="${HOME}/.gem/ruby/3.0.0/bin:${PATH}"
}
export_zsh() {
export ZSH="${HOME}/.oh-my-zsh"
export ZSH_SYNTAX_HIGHLIGHTING="${HOME}/.zsh-syntax-highlighting"
}
export_rg() {
export RIPGREP_CONFIG_PATH="${HOME}/.ripgreprc"
}
export_bkps() {
export BKP1="/mnt/sda1"
}
export_nvim() {
export NVM_DIR="${HOME}/.nvm"
export PATH="${PATH}:${HOME}/.local/share/bob/nvim-bin"
}
export_secrets() {
export GITHUB_API_TOKEN="${HOME}/.github-api-token"
# https://darkvisitors.com
export DARKVISITORS_TOKEN="${HOME}/.darkvisitors-token"
# https://docs.netlify.com/cli/get-started/#obtain-a-token-in-the-netlify-ui
export NETLIFY_AUTH_TOKEN_FILE="${HOME}/.netlify-token"
}
export_blog_problems() {
export CODEWARS_DIR="/home/rodmoioliveira/Desenvolvimento/algorithms/problems/src/codewars"
export LEETCODE_DIR="/home/rodmoioliveira/Desenvolvimento/algorithms/problems/src/leetcode"
}
main() {
export_gpg
export_path
export_snap
export_history
export_lang
export_editor
export_fzf
export_python
export_rust
export_ruby
export_zsh
export_rg
export_bkps
export_nvim
export_secrets
export_blog_problems
}
main