Improve PATH for Pulumi, Earthly and nvm
parent
ee8c942922
commit
2a0ad0f59d
|
@ -349,9 +349,13 @@ for_window [instance = "tandem" title = "^Tandem$"] sticky disable
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
#
|
#
|
||||||
|
# Enable GNOME Keyring:
|
||||||
|
#
|
||||||
|
exec gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
|
||||||
|
#
|
||||||
# Import systemd environments for GNOME Keyring:
|
# 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
|
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP SWAYSOCK
|
||||||
#
|
#
|
||||||
# Enable PolicyKit:
|
# Enable PolicyKit:
|
||||||
|
@ -361,10 +365,6 @@ exec lxpolkit
|
||||||
# Enable mako:
|
# Enable mako:
|
||||||
#
|
#
|
||||||
exec mako
|
exec mako
|
||||||
#
|
|
||||||
# Enable GNOME Keyring:
|
|
||||||
#
|
|
||||||
exec gnome-keyring-daemon --start
|
|
||||||
|
|
||||||
### Setup-specific configuration
|
### Setup-specific configuration
|
||||||
#
|
#
|
||||||
|
|
17
.zshrc
17
.zshrc
|
@ -40,10 +40,8 @@ load_slowest() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
sup() {
|
sup() {
|
||||||
echo "What's up? I am a machine, and you're trying to treat me like a human :(."
|
echo "Good morning!"
|
||||||
echo "You might feel better if I load some autocompletion scripts for you."
|
|
||||||
load_slowest
|
load_slowest
|
||||||
echo "I have more power now!"
|
|
||||||
}
|
}
|
||||||
prompt_run_count=0
|
prompt_run_count=0
|
||||||
on_second_prompt() {
|
on_second_prompt() {
|
||||||
|
@ -60,6 +58,9 @@ precmd_functions+=( on_second_prompt )
|
||||||
# executables
|
# executables
|
||||||
|
|
||||||
export PATH="$HOME/.local/bin:$HOME/.pwn/bin:$PATH"
|
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
|
if [[ -d "$HOME/.deno" ]]; then
|
||||||
export DENO_INSTALL="$HOME/.deno"
|
export DENO_INSTALL="$HOME/.deno"
|
||||||
export PATH="$DENO_INSTALL/bin:$PATH"
|
export PATH="$DENO_INSTALL/bin:$PATH"
|
||||||
|
@ -149,10 +150,17 @@ setup_completion_more() {
|
||||||
complete -o nospace -C mc mc
|
complete -o nospace -C mc mc
|
||||||
echo "Loaded minio completion"
|
echo "Loaded minio completion"
|
||||||
fi
|
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
|
if [[ -f "$(which kubectl 2>/dev/null)" ]]; then
|
||||||
source <(kubectl completion zsh)
|
source <(kubectl completion zsh)
|
||||||
echo "Loaded kubectl completion"
|
echo "Loaded kubectl completion"
|
||||||
fi
|
fi
|
||||||
|
if [[ -d "$NVM_DIR" ]]; then
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
#slower_functions+=( setup_completion_more )
|
#slower_functions+=( setup_completion_more )
|
||||||
slowest_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
|
echo UPDATESTARTUPTTY | gpg-connect-agent >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# add Pulumi to the PATH
|
|
||||||
export PATH=$PATH:$HOME/.pulumi/bin
|
|
||||||
|
|
Loading…
Reference in New Issue