-
-
Save nils-werner/740710 to your computer and use it in GitHub Desktop.
Some simple shellscripts for launching my texteditor and a git GUI
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/bash | |
if [ $# = 0 ]; then | |
killall gedit &> /dev/null | |
/usr/bin/gedit "$(pwd)/$(ls -1p | grep -v \/$ | head -n 1)" &> /dev/null & | |
else | |
/usr/bin/gedit "$@" &> /dev/null & | |
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
#!/bin/bash | |
killall giggle &> /dev/null | |
/usr/bin/giggle "$(pwd)" &> /dev/null & |
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/bash | |
killall giggle &> /dev/null | |
killall gedit &> /dev/null | |
g | |
e |
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/bash | |
/usr/bin/meld "$(pwd)" &> /dev/null & |
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/bash | |
/usr/bin/nautilus $(pwd) &> /dev/null & |
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/bash | |
if [ $# = 0 ]; then | |
if [ -f .vim ]; then | |
/usr/bin/vim -S .vim | |
else | |
/usr/bin/vim "." | |
fi | |
else | |
/usr/bin/vim "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment