-
Notifications
You must be signed in to change notification settings - Fork 184
/
.exports
64 lines (53 loc) · 2.08 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
# Initialize $PATH with system and user binaries.
export PATH="$PATH:$HOME/.config/composer/vendor/bin:$HOME/.node-packages/bin:$HOME/.cargo/bin:$HOME/.rbenv/shims:$HOME/.local/bin"
# Locale.
export LANG="en_US.UTF-8"
export LANGUAGE="en_US.UTF-8"
# Term.
export TERM="xterm-256color"
# Default Editor.
export EDITOR="subl"
# Default Pager.
export PAGER="less"
# Zsh.
if [ "$(ps -p $$ -ocomm=)" = "zsh" ]; then
# Oh My Zsh.
export ZSH="$HOME/.oh-my-zsh"
# Set a character at the end of partial lines to none.
export PROMPT_EOL_MARK=""
# History settings.
export HISTORY_IGNORE="([bf]g|c|clear|e|exit|h|history|incognito|l|l[adfls]|pwd|z)"
fi
# Bash.
if [ "$(ps -p $$ -ocomm=)" = "bash" ]; then
# History settings.
export HISTTIMEFORMAT="%F %T "
export HISTCONTROL=ignoredups
export HISTIGNORE="[bf]g:c:clear:e:exit:h:history:incognito:l:l[adfls]:pwd"
export HISTSIZE=10000
# Save and reload the history after each command finishes in another bash session.
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
fi
# bat.
export BAT_THEME="Material-Theme-Darker"
# fzf.
export FZF_DEFAULT_OPTS=" \
--color=fg:#c0c5ce,bg:#212121,hl:#808080,fg+:#e6e6e6,bg+:#3b3b3b,hl+:#f7c662 \
--color=info:#f7c662,prompt:#6699cc,pointer:#a6bc69,marker:#a6bc69,spinner:#f7c662,header:#6699cc"
# nnn.
export NNN_OPTS="deo" # Default command-line options
export NNN_BMS="d:~/Downloads;D:~/Documents;t:~/Temporary" # Bookmarks
export NNN_FCOLORS="03040601000205f7d204d9f7" # File colors
export NNN_PLUG="D:-!mediainfo \$nnn" # Plugins
export NNN_TRASH=1 # Trash instead of delete the files
# ripgrep.
export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"
# Less.
export LESS="--RAW-CONTROL-CHARS"
export LESS_TERMCAP_mb=$'\e[1;31m' # Start blinking
export LESS_TERMCAP_md=$'\e[1;34m' # Start bold mode
export LESS_TERMCAP_me=$'\e[0m' # End all mode
export LESS_TERMCAP_so=$'\e[38;5;215m' # Start standout mode
export LESS_TERMCAP_se=$'\e[0m' # End standout mode
export LESS_TERMCAP_us=$'\e[4;35m' # Start underline
export LESS_TERMCAP_ue=$'\e[0m' # End underline