1
0
Fork 0

Improve PATH for Pulumi, Earthly and nvm

main
Ambrose Chua 2023-01-26 17:47:24 +08:00
parent ee8c942922
commit 2a0ad0f59d
2 changed files with 16 additions and 11 deletions

View File

@ -349,9 +349,13 @@ for_window [instance = "tandem" title = "^Tandem$"] sticky disable
### Fixes
#
# Enable GNOME Keyring:
#
exec gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
#
# Import systemd environments for GNOME Keyring:
#
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_SEAT XDG_SESSION_DESKTOP XDG_SESSION_CLASS XDG_SESSION_ID XDG_RUNTIME_DIR DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec systemctl --user import-environment XDG_SESSION_TYPE XDG_SEAT XDG_SESSION_DESKTOP XDG_SESSION_CLASS XDG_SESSION_ID XDG_RUNTIME_DIR DISPLAY WAYLAND_DISPLAY SWAYSOCK SSH_AUTH_SOCK
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP SWAYSOCK
#
# Enable PolicyKit:
@ -361,10 +365,6 @@ exec lxpolkit
# Enable mako:
#
exec mako
#
# Enable GNOME Keyring:
#
exec gnome-keyring-daemon --start
### Setup-specific configuration
#

17
.zshrc
View File

@ -40,10 +40,8 @@ load_slowest() {
done
}
sup() {
echo "What's up? I am a machine, and you're trying to treat me like a human :(."
echo "You might feel better if I load some autocompletion scripts for you."
echo "Good morning!"
load_slowest
echo "I have more power now!"
}
prompt_run_count=0
on_second_prompt() {
@ -60,6 +58,9 @@ precmd_functions+=( on_second_prompt )
# executables
export PATH="$HOME/.local/bin:$HOME/.pwn/bin:$PATH"
if [[ -d "$HOME/.pulumi/bin" ]]; then
export PATH="$HOME/.pulumi/bin:$PATH"
fi
if [[ -d "$HOME/.deno" ]]; then
export DENO_INSTALL="$HOME/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
@ -149,10 +150,17 @@ setup_completion_more() {
complete -o nospace -C mc mc
echo "Loaded minio completion"
fi
if [[ -f "$(which earthly 2>/dev/null)" ]]; then
complete -o nospace -C earthly earthly
echo "Loaded earthly completion"
fi
if [[ -f "$(which kubectl 2>/dev/null)" ]]; then
source <(kubectl completion zsh)
echo "Loaded kubectl completion"
fi
if [[ -d "$NVM_DIR" ]]; then
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
fi
}
#slower_functions+=( setup_completion_more )
slowest_functions+=( setup_completion_more )
@ -508,6 +516,3 @@ if [[ -f "$(which gpgconf 2>/dev/null)" ]]; then
echo UPDATESTARTUPTTY | gpg-connect-agent >/dev/null 2>&1
}
fi
# add Pulumi to the PATH
export PATH=$PATH:$HOME/.pulumi/bin