surtur
447e85b88f
* optimise zplug, completions and ohmyzsh plugin loading resulting in faster load time * introduce shell caching (surely another speed-up) * clean-up zshrc and move stuff (wayland exports, sway call) to profile * set cleaner git status indicators via SPACESHIP vars * delete stuff (yeah, I know...) as per #2
69 lines
1.8 KiB
Bash
69 lines
1.8 KiB
Bash
export GOPATH=$HOME/utils/go
|
|
export CGO_ENABLED="1"
|
|
|
|
add_to_path() {
|
|
local p=$1
|
|
if [[ ! "$PATH" == *"$p"* ]]; then
|
|
export PATH="$p:$PATH"
|
|
fi
|
|
}
|
|
|
|
add_to_path "$HOME/.local/bin"
|
|
add_to_path "$HOME/utils/bin"
|
|
add_to_path "$HOME/.cargo/bin"
|
|
add_to_path "$GOPATH/bin"
|
|
|
|
export EDITOR='vim'
|
|
export TERM='xterm-256color'
|
|
export kee="surtur"
|
|
export SSH_KEY_PATH="$HOME/.ssh/$kee"
|
|
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
|
|
eval `ssh-agent` > /dev/null
|
|
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
|
|
|
|
|
|
if [ ! -S $HOME/.ssh/ssh_auth_sock ]; then
|
|
eval `ssh-agent` > /dev/null
|
|
ln -sf "$SSH_AUTH_SOCK" $HOME/.ssh/ssh_auth_sock
|
|
fi
|
|
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
|
|
|
if [ -n "$DESKTOP_SESSION" ];then
|
|
eval $(gnome-keyring-daemon --start)
|
|
export SSH_AUTH_SOCK
|
|
fi
|
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1 # why do I always have to take care of this myself...
|
|
|
|
export ANDROID_HOME=$HOME/utils/Android/Sdk
|
|
export PATH=$PATH:$ANDROID_HOME/tools
|
|
export PATH=$PATH:$ANDROID_HOME/platform-tools
|
|
export ANDROID_SDK_ROOT=$ANDROID_HOME
|
|
export ANDROID_SDK_PATH=$ANDROID_HOME
|
|
export ANDROID_NDK_PATH=$ANDROID_HOME/ndk-bundle
|
|
|
|
export AndroidSdkPath=$ANDROID_HOME
|
|
export AndroidNdkPath=$ANDROID_NDK_PATH
|
|
|
|
|
|
if [[ -z $DISPLAY ]]; then
|
|
export QT_QPA_PLATFORMTHEME=wayland
|
|
export QT_QPA_PLATFORM=wayland
|
|
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
|
export MOZ_DBUS_REMOTE=1
|
|
export MOZ_USE_XINPUT2=1
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
export KITTY_ENABLE_WAYLAND=1
|
|
export BEMENU_BACKEND=wayland
|
|
export SDL_VIDEODRIVER=wayland
|
|
export NO_AT_BRIDGE=1
|
|
export TDESKTOP_USE_PORTAL=1
|
|
|
|
if [[ $(tty) == /dev/tty1 ]]; then
|
|
export XDG_CURRENT_DESKTOP=sway
|
|
exec sway
|
|
elif [[ "$(tty)" == "/dev/tty2" ]] && ! ps -e | grep -qw sway
|
|
MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session
|
|
fi
|
|
fi
|