Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Put here the path to the theme.sh script
- theme_sh="$HOME/theme.sh"
- # Put here the list of commands you want to have opened
- commands=( htop bash )
- # Put here your terminal emulator if this doesn't get it right
- emulator="$(echo $TERM | cut -d '-' -f 1)"
- echo "Using $emulator"
- ######################################################################
- for t in $("$theme_sh" --list | sort -R); do
- echo "$t"
- for c in "${commands[@]}"; do
- $emulator -e bash -c "\"$theme_sh\" $t && exec $c" &> /dev/null &
- done
- wait
- done 2> /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement