Created
April 27, 2016 22:31
-
-
Save ArtiomL/e6e16d08fd9a715bf9a0c41fc052229b to your computer and use it in GitHub Desktop.
sea - Show, Execute Arguments
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 | |
# sea - Show, Execute Arguments | |
# (CC0) No Rights Reserved | |
# Artiom Lichtenstein | |
# v1.3, 28/04/2016 | |
if [ -z "$1" ]; then | |
echo; echo "Usage: ./sea {COMMAND_1} [COMMAND_2]..[COMMAND_N]"; echo | |
exit 1 | |
fi | |
shopt -s expand_aliases | |
source ~/.bash_aliases | |
clear | |
for i in "$@" | |
do | |
printf "\n$(tput setaf 3)$(tput bold)$i$(tput sgr0)\n" | |
eval $i | |
int_EXCODE=$? | |
printf "$(tput setaf 3)$(tput bold)Done[$int_EXCODE].$(tput sgr0)\n" | |
read -s -n 1 key_PRESSED | |
if [ "$key_PRESSED" == "q" ]; then | |
break | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment