A Safari tab switcher for terminal written in Nushell.
- macOS (uses AppleScript to control Safari)
- Nushell (automatically installed if using Nix)
Add to your flake inputs:
inputs.compass.url = "github:jakubrpawlowski/compass";Then add to your packages:
# For home-manager (user-specific)
home.packages = [ inputs.compass.packages.${pkgs.system}.default ];
# OR for nix-darwin (system-wide)
environment.systemPackages = [ inputs.compass.packages.${pkgs.system}.default ];# Clone the repository
git clone https://github.com/jakubrpawlowski/compass.git
cd compass
# Make it executable
chmod +x compass.nu
# Link or copy to your PATH
ln -s $(pwd)/compass.nu /usr/local/bin/assSimply run:
assThis will:
- Fetch all open Safari tabs from the front window
- Show them in an interactive fuzzy-search list
- Switch to the selected tab when you press Enter
Local tabs (localhost and file://) are prefixed with "local: " for easy identification.