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
function haskell_info() { | |
cabal_files=(*.cabal(N)) | |
if [ $#cabal_files -gt 0 ]; then | |
if [ -f cabal.sandbox.config ]; then | |
cabal_sandbox_info | |
elif [ -f stack.yaml ]; then | |
stack_info | |
else | |
echo "%{$fg[red]%}no stack/sandbox%{$reset_color%}" | |
fi |
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
# Install bass (https://github.com/edc/bass) to be able to use bash utilities in Fish | |
fisher add edc/bass | |
touch ~/.config/fish/functions/sdk.fish | |
# paste content in ~/.config/fish/functions/sdk.fish, then save | |
function sdk | |
bass source ~/.sdkman/bin/sdkman-init.sh ';' sdk $argv | |
end |