These files are always sourced (never executed directly), so the #!/bin/bash shebang is inert and misleading. Drop it consistently across rc.d/*, profile.d/*, and aliases.d/*.
4 lines
142 B
Plaintext
4 lines
142 B
Plaintext
if (command -v git && command -v fzf) &>/dev/null; then
|
|
function gsb { git checkout "$(git branch --all | fzf | tr -d '[:space:]')"; }
|
|
fi
|