WHRQUEK3XQLB44THZUTGVSX3S74DJQEUD4HYQKDYRXMCRY6EPTZQC
#!/usr/bin/env zsh
hm-profile() {
nix profile list | grep home-manager-path | head -n1
}
hm-profile-number() {
hm-profile | read -r a b
echo "$a"
}
hm-profile-path() {
hm-profile | read -r a b c d
echo "$d"
}
if ! [[ $ZSH_EVAL_CONTEXT =~ :file$ ]]; then
"$@"
fi
#!/usr/bin/env zsh
set -eu -o pipefail
set -x
source "$(which hm-util)"
profile_path="$(hm-profile-path)"
new_path="$(home-manager build)"
new_profile="$(readlink "$new_path"/home-path)"
if [[ "$new_profile" != "$profile_path" ]] && [[ -n "$new_path" ]]; then
nix profile remove "$profile_path"
"$new_path"/home-path/bin/home-manager switch
fi
#!/usr/bin/env zsh
hm-profile() {
nix profile list | grep home-manager-path | head -n1
}
hm-profile-number() {
hm-profile | read -r a b
echo "$a"
}
hm-profile-path() {
hm-profile | read -r a b c d
echo "$d"
}
if ! [[ $ZSH_EVAL_CONTEXT =~ :file$ ]]; then
"$@"
fi
#!/usr/bin/env zsh
set -eu -o pipefail
set -x
source "$(which hm-util)"
profile_path="$(hm-profile-path)"
new_path="$(home-manager build)"
new_profile="$(readlink "$new_path"/home-path)"
if [[ "$new_profile" != "$profile_path" ]] && [[ -n "$new_path" ]]; then
nix profile remove "$profile_path"
"$new_path"/home-path/bin/home-manager switch
fi