Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/data/data/com.termux/files/usr/bin/bash
- # Create a new executable script in ~/bin, edit it in vim then make it executable
- NEWSCRIPT="$1"
- # Add bash header
- echo -e "#!$PREFIX/bin/bash\n" > $HOME/bin/$NEWSCRIPT
- # Edit script using vim
- vim $HOME/bin/$NEWSCRIPT
- # Make script executable
- chmod 775 $HOME/bin/$NEWSCRIPT
Add Comment
Please, Sign In to add comment