-
-
Save sgnyjohn/56394ae42b83c67eb83ea42d43269c9a to your computer and use it in GitHub Desktop.
shell editor - script
This file contains 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 | |
cmd= | |
for i in geany gedit leafpad scite; do | |
cmd=$(which $i) | |
if [ ".$cmd" != "." ]; then | |
break | |
fi | |
done | |
if [ $UID -eq 0 ]; then | |
export HOME=/root | |
export XDG_CONFIG_HOME=$HOME/.config | |
fi | |
$cmd "$@" & | |
exit | |
#"-cwd:/home/signey/SciTE" $* | |
#"-loadsession:/home/signey/lixo1.ses" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment