-
Notifications
You must be signed in to change notification settings - Fork 11
/
.zprofile
executable file
·39 lines (33 loc) · 1.77 KB
/
.zprofile
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
#!/bin/sh
# zsh profile file. Runs on login. Environmental variables are set here.
sync_theme() {
dest=$(ls $1/*.sync)
yes | cp -f $dest ${dest::-5}
sed -i "s/ICON_THEME/$ICON_THEME/g" ${dest::-5}
}
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
export QT_QPA_PLATFORMTHEME="qt5ct" # Have QT use qt5ct theme.
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
export ZSHCFG="$ZDOTDIR/zshcfg"
export ZSH="$ZSHCFG/OMZ"
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
export BM_DIR=""
export ICON_THEME="Papirus-Dark"
export SYNC_ROFI="${XDG_CONFIG_HOME:-$HOME/.config}/rofi" && sync_theme $SYNC_ROFI
export SYNC_GTK="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-3.0" && sync_theme $SYNC_GTK
export SYNC_JGMENU="${XDG_CONFIG_HOME:-$HOME/.config}/jgmenu" && sync_theme $SYNC_JGMENU
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
export GOPATH="$HOME/.local/go"
export NPMBIN="$HOME/.local/npm/bin"
export NODE_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/node_modules"
# Adds `~/.local/bin` to $PATH
export SCRIPTS="$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':')"
export PATH="$PATH:$GOPATH/bin:$NPMBIN:$SCRIPTS"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/pass-store"
# This will be the default configuration file. To avoid overwriting it without permission, default file will bu updated with dots.
# Check phyos.conf.default for new configuration options & changes.
[[ ! -f "$HOME/.config/phyos/phyos.conf" ]] && cp "$HOME/.config/phyos/phyos.conf.default" "$HOME/.config/phyos/phyos.conf"
# Set catppuccin colorscheme if not existent in path
[[ ! -f "$HOME/.config/rofi/colors.rasi" ]] && ln -sf /usr/share/phyos/config/rofi/colors/catppuccin.rasi "$HOME/.config/rofi/colors.rasi"