-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bash_profile
More file actions
70 lines (54 loc) · 1.61 KB
/
Copy path.bash_profile
File metadata and controls
70 lines (54 loc) · 1.61 KB
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
# shellcheck shell=bash disable=SC1090
# Print date on login
printf '\e[1m\e[91m%(%A, %B %d, %Y)T \e[90m- \e[36m%(%Z %z)T\e[m\n\n'
# Set shell options
shopt -s dotglob globstar cmdhist
shopt -u force_fignore
# Set the default pager
export PAGER='nvimpager'
# Set the default editor
export EDITOR='nvim'
# Set the default browser
export BROWSER='firefox'
# Set the default command & options used by skim {{{
export SKIM_DEFAULT_COMMAND='fd -LIH -tf --color=always'
export SKIM_CTRL_T_COMMAND='fd -LIH -tf'
export SKIM_ALT_C_COMMAND='fd -LIH -td'
export SKIM_DEFAULT_OPTIONS='--ansi'
# }}}
# Set the XDG directories {{{
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_CACHE_HOME="$HOME/.cache"
# }}}
# Set the bash completion directory
export BASH_COMPLETION_USER_DIR="$XDG_DATA_HOME/bash"
# Specify the inputrc file
export INPUTRC="$XDG_CONFIG_HOME/inputrc"
# Source misc environment variables
test -f "$XDG_DATA_HOME/bash/environ.sh" && . "$_"
# Set the search path for commands {{{
export PATH="\
$HOME/.local/bin:\
/usr/local/bin:\
/usr/bin:\
/usr/lib/jvm/default/bin:\
/usr/lib/emscripten:\
/usr/bin/site_perl:\
/usr/bin/vendor_perl:\
/usr/bin/core_perl:\
$XDG_DATA_HOME/perl/bin:\
$XDG_DATA_HOME/npm/bin:\
$CARGO_HOME/bin:\
$GOPATH/bin"
# }}}
# Source bashrc
test -f "$XDG_DATA_HOME/bash/bashrc.sh" && . "$_"
# Source aliases
test -f "$XDG_DATA_HOME/bash/aliases.sh" && . "$_"
# Source functions
test -f "$XDG_DATA_HOME/bash/functions.sh" && . "$_"
# Source skim keybinds
test -f '/usr/share/skim/key-bindings.bash' && . "$_"
# vim:ft=sh: