diff options
author | Tyler Davis <tydavis@gmail.com> | 2023-08-06 15:22:33 -0700 |
---|---|---|
committer | Tyler Davis <tydavis@gmail.com> | 2023-08-06 15:22:33 -0700 |
commit | e6f3706eca0bb8f5ceb16ceb32093fed8ac51305 (patch) | |
tree | 4c872f6640608ddca0c1ec2b3d0828a2c31a6253 /.profile | |
parent | 95ca103fb8746021154c5c02dfcf7d94b40ecff8 (diff) | |
download | dotfiles-e6f3706eca0bb8f5ceb16ceb32093fed8ac51305.tar.gz dotfiles-e6f3706eca0bb8f5ceb16ceb32093fed8ac51305.zip |
git: add gitrect fix script
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -120,6 +120,13 @@ if [ "$(uname -s)" = "Darwin" ]; then # Unlock Keychain cli alias unlock='security unlock-keychain ~/Library/Keychains/login.keychain' + + #upcode alias for quickly updating code where gitrect cannot + if [ "$(command -v fd)" ]; then + alias upcode="fd -H -t d -E mod -E vendor '.git$' ~/.code -x bash -c \"cd {//}; ~/.local/bin/fetchgit;\"" + else + alias upcode="find ~/.code -name \".git\" |xargs -n1 -I{} bash -c 'cd {}/..; ~/.local/bin/fetchgit; ' " + fi fi # === END OSX === |