diff --git a/fake_home/.zshrc b/fake_home/.zshrc index acb830c..5555443 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -134,13 +134,13 @@ function push-extensions { echo "gnome-extensions is not installed!" return fi - mv $HOME/.tmp/gnome-extension-list $HOME/.tmp/prev-gnome-extension-list &> /dev/null - gnome-extensions list > $HOME/.tmp/gnome-extension-list + mv $HOME/.tmp/gnome-extension-list "$HOME/.tmp/prev-gnome-extension-list" &> /dev/null + gnome-extensions list --enabled > "$HOME/.tmp/gnome-extension-list" # If there is NO difference, skip scp - if [[ "$1" != "--force" ]] && diff $HOME/.tmp/gnome-extension-list $HOME/.tmp/prev-gnome-extension-list &> /dev/null; then + if [[ "$1" != "--force" ]] && diff "$HOME/.tmp/gnome-extension-list" "$HOME/.tmp/prev-gnome-extension-list" &> /dev/null; then return fi - scp -P 11275 $HOME/.tmp/gnome-extension-list 'sage@sagev.space:~/gnome-extension-list' + scp -P 11275 "$HOME/.tmp/gnome-extension-list" 'sage@sagev.space:~/gnome-extension-list' } function merge-hist {