-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_params
116 lines (96 loc) · 2.92 KB
/
.bash_params
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/sh
# themes
#export GTK_THEME=Adwaita:dark
#export GTK2_RC_FILES=/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc
#export QT_STYLE_OVERRIDE=adwaita-dark
# directories
export REPOS=$HOME/repos
export SCRIPTS_DIR=$REPOS/private/scripts
export PICTURES_DIR=$HOME/Pictures
export WALLPAPERS_DIR=$PICTURES_DIR/wallpapers
export SCREENSHOT_DIR=$PICTURES_DIR/screenshots
export MEDIA_DIR=$HOME/Music
# special files
export WALLPAPER_FILE=$HOME/.local/wallpaper.png
# configurations
export TERM=xterm
export TERMINAL=alacritty
export LANG=pl_PL.UTF-8
export LANGUAGE=pl_PL.UTF-8
export LC_ALL=pl_PL.UTF-8
export LC_COLLATE=pl_PL.UTF-8
export EDITOR='nvim'
export DEFAULT_OUTPUT="DP-4"
# xdg
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_HOME=$HOME/.local/share
export NOTMUCH_CONFIG=$HOME/.config/notmuch-config
export TMUX_CONFIG=$XDG_CONFIG_HOME/tmux
# ssh
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
export SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass
export PINENTRY=/usr/lib/ssh/x11-ssh-askpass
# app specific
export LYNX_CFG=$HOME/.config/lynx/lynx.cfg
export MPD_HOST=$HOME/.local/share/mpd/socket
export CHROME_BIN=/usr/bin/chromium
export GOBIN=$HOME/.local/share/go/bin
export VIRTUALENVWRAPPER_PYTHON=`which python`
export SUDO_ASKPASS="$SCRIPTS_DIR/askpass"
[ -f "$HOME/.bash_params_priv" ] && source $HOME/.bash_params_priv
# get all scripts dir subfolders (except .git)
scripts_dirs=$(find $SCRIPTS_DIR -type d ! -iwholename "*.git*" -printf %p:)
# list all customly added sources
# I find it easier to insert new ones
sources=(
/usr/local/games
/usr/local/bin
$HOME/.local/bin
$HOME/.local/share/applications
$GEM_HOME
$scripts_dirs
)
# flatten the list
# replace spaces echo generates between elements with colons
paths=$(echo ${sources[*]} | tr ' ' :)
export PATH=$PATH:$paths
source /usr/share/git/git-prompt.sh
# color
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White
txtrst='\e[0m' # Text Reset
# bold
bldblk='\e[1;30m' # Black - Bold
bldred='\e[1;31m' # Red
bldgrn='\e[1;32m' # Green
bldylw='\e[1;33m' # Yellow
bldblu='\e[1;34m' # Blue
bldpur='\e[1;35m' # Purple
bldcyn='\e[1;36m' # Cyan
bldwht='\e[1;37m' # White
# underscore
unkblk='\e[4;30m' # Black - Underline
undred='\e[4;31m' # Red
undgrn='\e[4;32m' # Green
undylw='\e[4;33m' # Yellow
undblu='\e[4;34m' # Blue
undpur='\e[4;35m' # Purple
undcyn='\e[4;36m' # Cyan
undwht='\e[4;37m' # White
# background
bgblk='\e[40m' # Black - Background
bgred='\e[41m' # Red
bggrn='\e[42m' # Green
bgylw='\e[43m' # Yellow
bgblu='\e[44m' # Blue
bgpur='\e[45m' # Purple
bgcyn='\e[46m' # Cyan
bgwht='\e[47m' # White
next=""
PS1="\[\033[44;30m\]\u@\h \[\033[41;34m\]$next \[\033[41;30m\]\w \[\033[31;43m\]$next\[\033[43;30m\]\$(__git_ps1) \[\033[0;33m\]$next\[\033[0;37m\]\n\$\[\033[0m\] "