diff options
Diffstat (limited to 'scripts/current-term')
| -rwxr-xr-x | scripts/current-term | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/current-term b/scripts/current-term index 1917293..21f9383 100755 --- a/scripts/current-term +++ b/scripts/current-term @@ -1,18 +1,18 @@ -#!/bin/bash +#!/bin/sh set_class=0 -if [[ $1 == "--class" ]]; then +if [ "$1" = "--class" ]; then set_class=1 class=$2 shift shift fi -if [[ $set_class -eq 1 ]]; then +if [ $set_class -eq 1 ]; then #termite --name=$class $@ - alacritty --class $class $@ + alacritty --class "$class" "$@" else - termite $@ + termite "$@" fi # vim: expandtab sw=2 ts=2 |
