dotfiles/.zprofile

78 lines
2.1 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 "/usr/local/goroot/bin"
add_to_path "$HOME/.asdf/shims"
add_to_path "$HOME/.arkade/bin"
add_to_path "$HOME/.cargo/bin"
add_to_path "$GOPATH/bin"
add_to_path "/opt/metasploit-framework/bin"
add_to_path "$HOME/.local/share/flatpak/exports/bin"
add_to_path "/var/lib/flatpak/exports/bin"
add_to_path "$HOME/.local/share/JetBrains/Toolbox/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
export DOTNET_CLI_TELEMETRY_OPTOUT=1 # why do I always have to take care of this myself...
export ANDROID_SDK_ROOT="$HOME/utils/Android/Sdk"
export ANDROID_SDK_PATH=$ANDROID_SDK_ROOT
export ANDROID_NDK_PATH=$ANDROID_SDK_ROOT/ndk-bundle
export ANDROID_NDK_HOME=$ANDROID_NDK_PATH
export AndroidSdkPath=$ANDROID_SDK_ROOT
export AndroidNdkPath=$ANDROID_NDK_PATH
add_to_path "$ANDROID_SDK_ROOT/tools"
add_to_path "$ANDROID_SDK_ROOT/platform-tools"
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
export XDG_SESSION_TYPE=wayland
export LIBVA_DRIVER_NAME="i965"
. ~/.zsh/bemenu-dracula/bemenu-dracula
if [[ $(tty) == /dev/tty1 ]]; then
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export XDG_CURRENT_DESKTOP=sway
exec systemd-cat --identifier=sway sway
elif [[ $(tty) == /dev/tty2 ]]; then
export MOZ_ENABLE_WAYLAND=1
export XDG_SESSION_TYPE=wayland
exec systemd-cat --identifier=gnome-session gnome
fi
fi