/ dot_profile
dot_profile
  1  #!/usr/bin/env sh
  2  
  3  eval $(ssh-agent)
  4  
  5  # Default programs
  6  export VISUDO_EDITOR="nvim"
  7  export SUDO_EDITOR="nvim"
  8  export EDITOR="nvim"
  9  export VISUAL="nvim"
 10  export PAGER="less"
 11  export TERMINAL="st"
 12  export READER="zathura"
 13  export FILE="lf"
 14  export BROWSER="firefox"
 15  
 16  # Where user-specific configurations should be written (analogous to /etc).
 17  # Should default to $HOME/.config.
 18  export XDG_CONFIG_HOME="$HOME/.config"
 19  
 20  # Where user-specific state files should be written (analogous to /var/lib).
 21  # Should default to $HOME/.local/state.
 22  export XDG_STATE_HOME="$HOME/.local/state"
 23  
 24  # Where user-specific data files should be written (analogous to /usr/share).
 25  # Should default to $HOME/.local/share.
 26  export XDG_DATA_HOME="$HOME/.local/share"
 27  
 28  # Where user-specific non-essential (cached) data should be written (analogous to /var/cache).
 29  # Should default to $HOME/.cache.
 30  export XDG_CACHE_HOME="$HOME/.local/cache"
 31  
 32  export BIN_HOME="$HOME/.local/bin"
 33  
 34  # export XDG_RUNTIME_DIR
 35  # Used for non-essential, user-specific data files such as sockets, named pipes, etc.
 36  # Not required to have a default value; warnings should be issued if not set or equivalents provided.
 37  # Must be owned by the user with an access mode of 0700.
 38  # Filesystem fully featured by standards of OS.
 39  # Must be on the local filesystem.
 40  # May be subject to periodic cleanup.
 41  # Modified every 6 hours or set sticky bit if persistence is desired.
 42  # Can only exist for the duration of the user's login.
 43  # Should not store large files as it may be mounted as a tmpfs.
 44  # pam_systemd sets this to /run/user/$UID.
 45  
 46  export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
 47  
 48  export SUDO_ASKPASS="$BIN_HOME/dmenupass"
 49  
 50  export BIB="$HOME/Documents/LaTeX/uni.bib"
 51  
 52  export LEDGER_FILE="$HOME/Documents/Ledger/hledger.journal"
 53  
 54  export QT_QPA_PLATFORMTHEME="qt5ct" #Fixes Qt apps, somehow
 55  
 56  # Development packages
 57  export GOPATH="$XDG_CACHE_HOME/go"
 58  export GOBIN="$HOME/.local/bin"
 59  
 60  export ANDROID_HOME="$XDG_DATA_HOME/Android/Sdk"
 61  export ANDROID_USER_HOME="$XDG_CONFIG_HOME/Android/Sdk"
 62  
 63  PATH="$HOME.vim/bundle/vim-live-latex-preview/bin:$PATH"
 64  PATH="$HOME/.local/bin:$PATH"
 65  PATH="$HOME/.local/kotlin-language-server/bin:$PATH"
 66  PATH="$HOME/.cargo/bin:$PATH"
 67  PATH="$HOME/.config/emacs/bin:$PATH"
 68  PATH="$ANDROID_HOME/tools:$PATH"
 69  PATH="$ANDROID_HOME/tools/bin:$PATH"
 70  PATH="$ANDROID_HOME/platform-tools:$PATH"
 71  export PATH
 72  
 73  # FZF colors
 74  export FZF_DEFAULT_OPTS="--color=bg+:#073642,bg:#002b36,spinner:#719e07,hl:#586e75,fg:#839496,header:#586e75,info:#cb4b16,pointer:#719e07,marker:#719e07,fg+:#839496,prompt:#719e07,hl+:#719e07"
 75  
 76  # less/man colors
 77  export LESS=-R
 78  export LESS_TERMCAP_mb="$(printf '%b' '')"
 79  export LESS_TERMCAP_md="$(printf '%b' '')"
 80  export LESS_TERMCAP_me="$(printf '%b' '')"
 81  export LESS_TERMCAP_so="$(printf '%b' '')"
 82  export LESS_TERMCAP_se="$(printf '%b' '')"
 83  export LESS_TERMCAP_us="$(printf '%b' '')"
 84  export LESS_TERMCAP_ue="$(printf '%b' '')"
 85  
 86  # Enable firefox's wayland backend
 87  export MOZ_ENABLE_WAYLAND="1"
 88  
 89  # Fix Java GUI programs on tiling window managers
 90  export _JAVA_AWT_WM_NONREPARENTING="1"
 91  
 92  # Fixes electron programs not being able to access a dbus daemon
 93  export DBUS_SESSION_BUS_ADDRESS="autolaunch:"
 94  
 95  # Sets the default shell.
 96  # This is not the login shell,
 97  # but most programs that spawns a shell, like lf and st,
 98  # will spawn the shell defined in this variable
 99  maybe_SHELL="$(which fish)"
100  export SHELL="${maybe_SHELL:-sh}"
101  
102  # Start river server if it is not already running.
103  [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x river >/dev/null && exec river