dotfiles/.zprofile

89 lines
2.6 KiB
Plaintext
Raw Normal View History

2022-10-17 21:33:37 +02:00
export GOPATH=$HOME/go
export CGO_ENABLED="1"
2022-08-29 00:30:29 +02:00
# make home-manager not manage the shell configuration
HMVARSFILE="$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
if [ -f "$HMVARSFILE" ]; then . "$HMVARSFILE"; fi
add_to_path() {
local p=$1
if [[ ! "$PATH" == *"$p"* ]]; then
export PATH="$p:$PATH"
fi
}
2022-03-26 01:58:06 +01:00
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"
2022-03-26 01:58:06 +01:00
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'
2023-02-21 19:55:43 +01:00
export kee="$HOST"
export SSH_KEY_PATH="$HOME/.ssh/$kee"
2022-10-17 21:07:39 +02:00
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent -t4h` > /dev/null
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
2022-10-17 21:07:39 +02:00
fi
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 ! [ -f /run/.containerenv ]; then
pgrep -x -U "$(id -u)" gnome-keyring-d || export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
fi
export DOTNET_CLI_TELEMETRY_OPTOUT=1 # why do I always have to take care of this myself...
2022-03-26 01:58:06 +01:00
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
2022-03-26 01:58:06 +01:00
add_to_path "$ANDROID_SDK_ROOT/tools"
add_to_path "$ANDROID_SDK_ROOT/platform-tools"
unfunction add_to_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
export XDG_SESSION_TYPE=wayland
2022-07-03 11:50:16 +02:00
export LIBVA_DRIVER_NAME="i965"
test -f ~/.zsh/bemenu-dracula/bemenu-dracula && . ~/.zsh/bemenu-dracula/bemenu-dracula
if [[ $(tty) == /dev/tty1 ]]; then
2022-07-03 11:51:52 +02:00
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export XDG_CURRENT_DESKTOP=sway
2022-07-03 11:53:51 +02:00
exec systemd-cat --identifier=sway sway > $XDG_RUNTIME_DIR/sway.log 2>&1
elif [[ $(tty) == /dev/tty2 ]]; then
export MOZ_ENABLE_WAYLAND=1
export XDG_SESSION_TYPE=wayland
exec systemd-cat --identifier=gnome-session gnome
fi
fi