aboutsummaryrefslogtreecommitdiff
path: root/foote.sh
diff options
context:
space:
mode:
Diffstat (limited to 'foote.sh')
-rwxr-xr-xfoote.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/foote.sh b/foote.sh
deleted file mode 100755
index 0631513..0000000
--- a/foote.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-# Set foot's title to the command supplied after -e.
-# Note: Option -e is mandatory for this wrapper script.
-# Скрипт для запуска cli программ с именованным заголовком напрямую из терминала
-
-unset title
-arg_i=0
-for arg; do
- arg_i=$((arg_i+1))
- if [[ "$arg" != "-e" ]]; then
- continue
- else
- arg_i=$((arg_i+1))
- title="${*:$arg_i}"
- break
- fi
-done
-
-if ! [[ -v title ]]; then
- printf 'error: option -e is mandatory\n'
- exit 1
-fi
-
-set -e
-
-exec foot --title="$title" "$@" 2> /dev/null &