2019-06-11 15:44:42 +02:00
|
|
|
# shellcheck disable=SC2183,SC2155
|
2019-05-28 17:44:30 +02:00
|
|
|
|
|
|
|
# Print date on login
|
2019-06-19 20:43:45 +02:00
|
|
|
printf '\e[1m\e[91m%(%A, %B %e, %Y)T \e[90m- \e[36m%(%Z %z)T\e[m\n\n'
|
2019-05-28 17:44:30 +02:00
|
|
|
|
|
|
|
# Ctrl + Space to expand command
|
|
|
|
bind '\C-Space':magic-space
|
|
|
|
|
|
|
|
# Case insensitive completion
|
|
|
|
bind 'set completion-ignore-case on'
|
|
|
|
|
|
|
|
# Include hidden files in glob
|
|
|
|
shopt -s dotglob
|
|
|
|
|
|
|
|
# Save multi-line commands as one command
|
|
|
|
shopt -s cmdhist
|
|
|
|
|
|
|
|
# Set the github & gitlab tokens {{{
|
|
|
|
test -f ~/.local/tokens/github && export GITHUB_TOKEN="$(<"$_")"
|
|
|
|
test -f ~/.local/tokens/gitlab && export GITLAB_TOKEN="$(<"$_")"
|
|
|
|
# }}}
|
|
|
|
|
2019-06-19 20:43:45 +02:00
|
|
|
# Make pipenv use .venv
|
|
|
|
export PIPENV_VENV_IN_PROJECT=1
|
|
|
|
|
2019-05-28 17:44:30 +02:00
|
|
|
# Set the default command used by fzf
|
|
|
|
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --no-ignore'
|
|
|
|
|
2019-09-02 03:42:42 +02:00
|
|
|
# Set the default pager
|
|
|
|
export PAGER='nvimpager -p'
|
2019-05-28 17:44:30 +02:00
|
|
|
|
2019-09-02 03:42:42 +02:00
|
|
|
# Set the default editor
|
2019-05-28 17:44:30 +02:00
|
|
|
export EDITOR=nvim
|
|
|
|
|
2019-09-02 03:42:42 +02:00
|
|
|
# Set the default browser
|
2019-05-28 17:44:30 +02:00
|
|
|
export BROWSER=firefox
|
|
|
|
|
2019-09-25 20:07:56 +02:00
|
|
|
# Set the XDG directories {{{
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
|
|
# }}}
|
|
|
|
|
2019-07-03 18:19:12 +02:00
|
|
|
# Set the paths used by go {{{
|
2019-05-28 17:44:30 +02:00
|
|
|
export GOPATH="$HOME/.local/go"
|
2019-07-03 18:19:12 +02:00
|
|
|
# }}}
|
2019-05-28 17:44:30 +02:00
|
|
|
|
2019-09-25 20:07:56 +02:00
|
|
|
# Set the paths used by ruby {{{
|
2019-05-28 17:44:30 +02:00
|
|
|
export GEM_HOME="$HOME/.local/ruby"
|
|
|
|
export GEM_SPEC_CACHE="$GEM_HOME/specs"
|
|
|
|
export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/2.6.0"
|
|
|
|
# }}}
|
|
|
|
|
2019-07-03 18:19:12 +02:00
|
|
|
# Set the paths used by perl5 {{{
|
2019-07-02 09:25:12 +02:00
|
|
|
export PERL5LIB="$HOME/.local/perl/lib/perl5"
|
2019-11-10 17:43:16 +01:00
|
|
|
export PERL_CPANM_OPT="-l $HOME/.local/perl"
|
2019-07-02 09:25:12 +02:00
|
|
|
export PERL_CPANM_HOME="$HOME/.local/perl/.cpanm"
|
|
|
|
# }}}
|
|
|
|
|
2019-09-25 20:07:56 +02:00
|
|
|
# Set the paths used by rust {{{
|
|
|
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
|
|
|
# }}}
|
|
|
|
|
|
|
|
# Set the paths used by node {{{
|
|
|
|
export NODE_REPL_HISTORY="$XDG_CACHE_HOME/.node_repl_history"
|
|
|
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
|
|
|
# }}}
|
|
|
|
|
2019-07-03 18:19:12 +02:00
|
|
|
# Set the paths used by the android sdk {{{
|
2019-09-02 03:42:42 +02:00
|
|
|
export ANDROID_HOME="$HOME/.local/android"
|
2019-07-03 18:19:12 +02:00
|
|
|
# }}}
|
|
|
|
|
2019-09-02 03:42:42 +02:00
|
|
|
# Set the search path for commands {{{
|
|
|
|
export PATH="$HOME/.local/bin:\
|
2019-09-25 20:07:56 +02:00
|
|
|
/usr/bin:/usr/local/bin:/usr/sbin:\
|
2019-09-02 03:42:42 +02:00
|
|
|
/usr/lib/jvm/default/bin:\
|
|
|
|
/usr/bin/site_perl:\
|
|
|
|
/usr/bin/vendor_perl:\
|
|
|
|
/usr/bin/core_perl:\
|
|
|
|
$HOME/.local/perl/bin:\
|
|
|
|
$GOPATH/bin:\
|
|
|
|
$GEM_HOME/bin:\
|
|
|
|
$ANDROID_HOME/tools:\
|
|
|
|
$ANDROID_HOME/platform-tools:"
|
|
|
|
# }}}
|
2019-05-28 17:44:30 +02:00
|
|
|
|
2019-09-25 20:07:56 +02:00
|
|
|
# Set the paths used by ccache {{{
|
|
|
|
export CCACHE_CONFIGPATH="$XDG_CONFIG_HOME/ccache.cfg"
|
|
|
|
export CCACHE_DIR="$XDG_CACHE_HOME/ccache"
|
|
|
|
# }}}
|
|
|
|
|
2019-05-28 17:44:30 +02:00
|
|
|
# Use a 256color terminal if one exists {{{
|
|
|
|
for t in {konsole,xterm,gnome}-256color; do
|
|
|
|
[ -f /usr/share/terminfo/${t:0:1}/$t ] && export TERM=$t && break
|
|
|
|
[ $t == gnome-256color ] && export TERM=xterm
|
|
|
|
done
|
|
|
|
# }}}
|
|
|
|
|
|
|
|
# Source bashrc
|
|
|
|
test -f ~/.bashrc && source ~/.bashrc
|
|
|
|
|
|
|
|
# vim:set fdm=marker fdl=1:
|