2019-07-11 13:26:24 +02:00
|
|
|
# Add our scripts to the path
|
2019-10-04 11:48:34 +02:00
|
|
|
export PATH="$HOME/.scripts:$PATH"
|
2019-07-11 13:26:24 +02:00
|
|
|
|
|
|
|
# Export our favorite editor
|
|
|
|
export EDITOR=vim
|
|
|
|
export VISUAL=$EDITOR # Also use it when asking for a GUI
|
2019-07-13 03:22:04 +02:00
|
|
|
# Export our terminal for i3-sensible-terminal
|
|
|
|
export TERMINAL=termite
|
2019-07-11 13:26:24 +02:00
|
|
|
|
2019-07-14 07:12:53 +02:00
|
|
|
# Use my own ranger config file with all mappings defined
|
|
|
|
export RANGER_LOAD_DEFAULT_RC=FALSE
|
|
|
|
|
2019-07-11 13:26:24 +02:00
|
|
|
# Color ls output depending on filetype with dircolors
|
|
|
|
[ -e "/etc/DIR_COLORS" ] && DIR_COLORS="/etc/DIR_COLORS"
|
|
|
|
[ -e "$HOME/.dircolors" ] && DIR_COLORS="$HOME/.dircolors"
|
|
|
|
[ -e "$DIR_COLORS" ] || DIR_COLORS=""
|
2019-10-08 11:31:31 +02:00
|
|
|
eval "$(dircolors -b $DIR_COLORS)"
|
2019-07-11 13:26:24 +02:00
|
|
|
|
2019-10-02 17:46:18 +02:00
|
|
|
# Use less as my default pager
|
|
|
|
export PAGER=less
|
|
|
|
# Allow for colorful man pages, clear the screen on exit
|
|
|
|
export LESS='-R -+X'
|
2019-07-11 13:26:24 +02:00
|
|
|
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
|
|
|
|
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
|
|
|
|
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
|
|
|
|
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
|
|
|
|
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
|
|
|
|
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
|
|
|
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
|
2019-07-17 16:03:32 +02:00
|
|
|
|
2019-10-06 19:29:39 +02:00
|
|
|
# Use lesspipe as a file preprocessor (unlike bat, can somewhat read pdf)
|
2019-10-08 11:29:47 +02:00
|
|
|
{ [ -x /usr/bin/lesspipe.sh ] && eval "$(lesspipe.sh)"; } ||
|
|
|
|
{ [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"; } # Quoting seems necessary
|
2019-10-06 19:29:39 +02:00
|
|
|
|
2019-10-03 13:38:00 +02:00
|
|
|
# Use my preferred pager settings for bat
|
|
|
|
export BAT_PAGER="$PAGER $LESS"
|
|
|
|
|
2019-07-17 16:03:32 +02:00
|
|
|
# Rust installation
|
|
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
2019-07-17 17:50:42 +02:00
|
|
|
|
2019-07-18 16:19:25 +02:00
|
|
|
# Use keychain to handle ssh-agent
|
2019-10-08 11:31:31 +02:00
|
|
|
eval "$(keychain --eval id_rsa --quiet)"
|