123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/bash
- # add local bin to path
- export PATH=/usr/local/bin:$PATH
- # explicitly set and append to XDG_DATA_DIRS
- [ -z "$XDG_DATA_DIRS" ] && export XDG_DATA_DIRS="/usr/share:/usr/local/share"
- export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share"
- # set language, editor, augment history behavior, enable dynamic resize
- export LANG=en_US.UTF-8
- export LANGUAGE=en_US.UTF-8
- export EDITOR=vim
- export HISTFILE="$HOME/.bash_history"
- export HISTCONTROL=ignoreboth:erasedups
- shopt -s histappend
- shopt -s checkwinsize
- shopt -s direxpand
- # fcitx IME support
- export GTK_IM_MODULE=fcitx
- export QT_IM_MODULE=fcitx
- export XMODIFIERS=@im=fcitx
- # specify wayland for applications (primarily games)
- export MOZ_ENABLE_WAYLAND=1
- export SDL_VIDEODRIVER="wayland"
- export XDG_CURRENT_DESKTOP=Unity
- export WINE_FULLSCREEN_FSR=1
- # add aliases with optimized settings
- alias ls='ls -vhFA --color=auto'
- alias grep='grep --color=auto'
- alias ..='cd ..'
- alias ...='cd ../..'
- alias sshfs='sshfs -o cache=yes,compression=yes,kernel_cache'
- # alias for discord wayland, since it ignores configs
- alias discord='discord --enable-features=UseOzonePlatform --ozone-platform=wayland'
- # if bashrc exists and the terminal has stdin load it
- test -t 0 && . "$HOME/.bashrc"
|