fixed chscheme to properly exit when user hits escape in the fzf window
This commit is contained in:
@@ -13,8 +13,8 @@ pkgs.writeShellScriptBin "chscheme" ''
|
||||
b=$((16#''${clean_value:4:2})); \
|
||||
printf "\033[48;2;%d;%d;%dm %-20s %s \033[0m\n" $r $g $b $key $clean_value; \
|
||||
fi; \
|
||||
done' | xargs -I {} sed -i '/base16scheme \=/s/\".*\"/\"{}\"/' "$HOME"/.sysflake/flake.nix && \
|
||||
[[ $? -ne 0 ]] && echo "Aborting color scheme change." && exit 0
|
||||
done' | xargs -I {} sed -i '/base16scheme \=/s/\".*\"/\"{}\"/' "$HOME"/.sysflake/flake.nix \
|
||||
[ $? -ne 0 ] && echo "Aborting color scheme change." && exit 0
|
||||
echo "Successfully changed system color scheme. Rebuild now?" && \
|
||||
select choice in "Yes" "No"; do
|
||||
case $choice in
|
||||
|
||||
Reference in New Issue
Block a user