-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.profile
69 lines (59 loc) · 2.13 KB
/
.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# [ -f "$HOME/.profile" ] && . "$HOME/.profile"
export CODE="$HOME/.local/src"
export CODE_DOTFILES="$CODE/sh/dotfiles"
export PROFILE_SOURCED=$USER
# Default programs
export EDITOR="nvim"
export BROWSER="brave"
export FILE="nemo"
export TERMFILE="ranger"
export READER="zathura"
export PLAYER="spotify"
export TERMINAL="st"
export TERMINAL_LAUNCH="$TERMINAL -e"
export MAIL="thunderbird"
# task
export TASKDATA="$HOME/.config/task"
export TASKRC="$HOME/.config/taskrc"
export FZF_CODE=1
# Thanks to Luke Smith https://github.com/LukeSmithxyz/voidrice
# ~/ Clean-up:
export ANSIBLE_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/ansible/ansible.cfg"
export CALCHISTFILE="${XDG_CACHE_HOME}/.calc_history"
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/inputrc"
export KODI_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/kodi"
export LESSHISTFILE="-"
export MYSQL_HISTFILE="${XDG_CACHE_HOME}/.mysql_history"
export NODE_REPL_HISTORY="${XDG_CACHE_HOME}/.node_repl_history"
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
export NVIM_LOG_FILE="${XDG_CACHE_HOME}/.nvimlog"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
export PSQL_HISTORY="${XDG_CACHE_HOME}/.psql_history"
export SQLITE_HISTORY="${XDG_CACHE_HOME}/.sqlite_history"
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
# Path setup
prepend_path () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="$1:${PATH:+$PATH}"
esac
}
prepend_path "$CARGO_HOME/bin"
prepend_path "$GOPATH/bin"
prepend_path "$HOME/Android/Sdk/emulator"
prepend_path "$HOME/.local/bin"
prepend_path "$HOME/.local/bin/scripts"
unset prepend_path
export PATH
export QT_QPA_PLATFORMTHEME="qt5ct"