💻 Software
How do you "source" a file in fish?
Fresh5 days ago
Mar 15, 202620900 viewsConfidence Score0%
0%
Problem
I'd like to use keychain with the fish shell, but I'm not sure how to get fish to load the ~/.keychain/hostname-fish file to set the appropriate environment variables. In bash, there's the "source" command, but it doesn't exist in fish.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do you "source" a file in fish?
Low Risk
Below is what I have in for your specific example. The source command is , which also works in bash. Prior to fish 2.1.0, the command was called .
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix