From e6f19ed63979844ea259f69b8ab0702586a69d68 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 5 May 2022 22:21:59 +0200 Subject: Added comments for ksh completion --- brightness | 4 ++++ open-file | 2 -- secret | 4 ++++ trash | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/brightness b/brightness index b2ff43a..a7294fb 100755 --- a/brightness +++ b/brightness @@ -4,6 +4,10 @@ # Requires: xbacklight, a notification program such as herbe or notify-send # Usage: brightness {inc|dec} n +# ksh completion +# set -A complete_brightness_1 inc dec +# set -A complete_brightness_2 5 + #notify="notify-send" notify="herbe" diff --git a/open-file b/open-file index 848fd9b..a7cc551 100755 --- a/open-file +++ b/open-file @@ -2,8 +2,6 @@ # Inspired by https://github.com/salman-abedin/launch.sh # Launches files based on their mimetypes -# Use option -s devour to swallow or -s " " to open normally from terminal -# Use -t to specify mimetype # Requires: dmenu_path or similar (fallback), dmenu-filepicker menu=${MENU:-dmenu} diff --git a/secret b/secret index 5b8afed..14ec2e0 100755 --- a/secret +++ b/secret @@ -12,6 +12,10 @@ # Requires: openssl, xsel (for clip only) +# ksh completion +# set -A complete_sel_1 clip edit show +# set -A complete_sel_2 box/secret + opts="aes-256-cbc -iter 1000" # options for openssl timeout=10 # timeout for clip, in ms editor=${EDITOR:-vi} diff --git a/trash b/trash index a9f6fb1..9880cc0 100755 --- a/trash +++ b/trash @@ -6,6 +6,9 @@ # Usage: trash [rm FILE(s)|ls|empty] # Pretty self-explanatory +# ksh completion +# set -A complete_trash_1 rm ls empty + trashfolder=$XDG_DATA_HOME/mytrash if [ -z "$1" ]; then -- cgit v1.3