Last active
April 23, 2021 21:19
-
-
Save Adobe-Android/69cfe39d21be6b0760a6f9ecb6488c6f to your computer and use it in GitHub Desktop.
A fish shell script to check if running in an interactive shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/fish | |
if status --is-interactive | |
echo an interactive shell | |
else | |
echo not an interactive shell | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment