-
Create a file
/usr/local/bin/pause_after_exitwith the content of this script. -
Make the file executble:
sudo chmod +x /usr/local/bin/pause_after_exit -
Test in your app directory.
pause_after_exit rake routes -
Bind this command to a key in tmux.
Last active
December 22, 2015 18:59
-
-
Save nilbus/d8de18e0aedf5c54058a to your computer and use it in GitHub Desktop.
Pause after running a command
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 | |
| $* # Run the program passed in the args | |
| EXIT=$? # Preserve the exit status | |
| read -p "Press ENTER to exit." | |
| exit $EXIT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice~!
!