Parcourir la source

fix gvm loading by making it reload

Casey DeLorme il y a 2 ans
Parent
commit
7a66936c99
2 fichiers modifiés avec 10 ajouts et 1 suppressions
  1. 1 1
      arch.sh
  2. 9 0
      todo.md

+ 1 - 1
arch.sh

@@ -233,7 +233,7 @@ if [[ -n "$username" && -n "$password" ]]; then
 
 	# install gvm loading from ~/.bash_profile, and the latest go version
 	su $username -c "if [ ! -d ~/.gvm ]; then GVM_NO_UPDATE_PROFILE=1 bash < <(curl -Ls https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer 2> /dev/null); fi"
-	su $username -c 'grep "gvm" ~/.bash_profile &> /dev/null || echo -e "\n# load gvm\n! which gvm &> /dev/null && . ~/.gvm/scripts/gvm" >> ~/.bash_profile'
+	su $username -c 'grep "gvm" ~/.bash_profile &> /dev/null || echo -e "\n# load gvm\n[ -s ~/.gvm/scripts/gvm ] && . $HOME/.gvm/scripts/gvm" >> ~/.bash_profile'
 	su $username -c ". ~/.gvm/scripts/gvm && gvm install go1.17.6 -B && gvm use go1.17.6 --default"
 
 	# configure user-space transmission

+ 9 - 0
todo.md

@@ -11,6 +11,15 @@ _Expect iterative changes over the following months while fine-tuning happens on
 Going directly to hardware trials because virtualbox support requires too much undesirable configuration:
 
 
+---
+
+alacritty does not load bash_profile, which means gvm never refreshes.
+
+I should move most of the non-static content into bashrc instead, which does get loaded every new shell.
+
+Perhaps hardcode gvm loading into the bashrc, and only keep raw static exports in bash_profile?
+
+
 ---
 
 Consider modifying this line to stop the sway-session.target: