dotfiles/.bash_profile
2024-02-08 12:09:26 +01:00

35 lines
900 B
Bash

#
# ~/.bash_profile
#
[[ -f ~/.extend.bash_profile ]] && . ~/.extend.bash_profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
export VISUAL=vim
export EDITOR=vim
export PAGER=less
export PATH=~/.local/bin:$PATH
# Passe -P -i à groff, pour passer -i à grotty pour afficher du vrai italique
export MANROFFOPT="-P -i"
export HASTE_SERVER="https://haste.breizh.pm"
export MPD_HOST="$HOME/.mpd/socket"
export MAGICK_TMPDIR="$HOME/.cache/ImageMagick/"
export HIGHLIGHT_STYLE="base16/eighties"
eval $(ssh-agent -s)
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
export QT_QPA_PLATFORMTHEME=qt5ct
export BROWSER="systemd-run --user --scope -p MemoryMax=3G firefox"
export TERMINAL=urxvtc
export XDG_CURRENT_DESKTOP=i3
# exec sway -d 2> $HOME/.sway.log
exec startx
elif [ "$XDG_VTNR" -ne 6 ]; then
export BROWSER=elinks
fish
logout
fi