fancy-git
fancy-git copied to clipboard
Command not found when running from script
Everything works from the terminal, but not when running a scrip.
My script:
#!/bin/bash/
fancygit --theme-human
fancygit --disable-time
fancygit --disable-full-path
fancygit --enable-double-line
Output:
script.sh: line 23: fancygit: command not found
I suppose you are running the script by: ./<your_file>.sh or bash ./<your_file>.sh
Instead, try running the script by sourcing: . ./<your_file>.sh or source ./<your_file>.sh
Did it work? :smile: