Skip to main content

Tweak my Fish config to use osascript directly

ID
e95f0ad
date
2024-02-11 23:05:22+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
89f7a8f
message
Tweak my Fish config to use osascript directly
changed files
1 file, 1 addition, 3 deletions

Changed files

config.fish (6780) → config.fish (6807)

diff --git a/config.fish b/config.fish
index 0487bc2..b0e8647 100644
--- a/config.fish
+++ b/config.fish
@@ -47,8 +47,6 @@ function prepend_to_path
 end
 
 
-prepend_to_path ~/.cargo/bin
-
 prepend_to_path /Library/Frameworks/Python.framework/Versions/3.12/bin
 
 prepend_to_path ~/repos/scripts
@@ -105,7 +103,7 @@ end
 # Load macOS-specific utilities
 if [ (uname -s) = Darwin ]
     # Provide a convenient alias for the front URL in both browsers
-    alias furl="safari url"
+    alias furl="osascript -e 'tell application \"Safari\" to get URL of document 1'"
     alias gurl="osascript -e 'tell application \"Google Chrome\" to tell front window to get URL of tab (active tab index)'"
 
     # Get the URL of the frontmost GitHub page and clone it