dot-files/shell/.profile

34 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-07-11 13:26:24 +02:00
# Add our scripts to the path
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
# Export our terminal for i3-sensible-terminal
export TERMINAL=termite
2019-07-11 13:26:24 +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=""
eval "`dircolors -b $DIR_COLORS`"
# Allow for colorful man pages
export LESS=-R
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
# Rust installation
export PATH="$HOME/.cargo/bin:$PATH"
# Use keychain to handle only prompt for ssh keys once, when needed
eval $(keychain --eval id_rsa --quiet --nogui --noask)