commit 8f1e38c94770a28fa94dbfe8b2f6240ed2ef7cd5 from: Benjamin Stürz date: Tue Aug 13 11:56:37 2024 UTC mykshrc: add gst, gcl_ls and gcl commit - 4b06abd7ce571bed117353194e0fd2f2885c7e9c commit + 8f1e38c94770a28fa94dbfe8b2f6240ed2ef7cd5 blob - f5d7913e87ced2089ca8ed08d837e4ac885519b1 blob + e0f7dc4edacc6327819113a1097342792e273c55 --- etc/common/mykshrc +++ etc/common/mykshrc @@ -132,6 +132,23 @@ gua() { unset _gu_br _gu_old } +gst() { + got st "$@" | grep -v '^?' +} + +gcl_ls() { + got st "$@" | sed -n '/^? */s///p' +} + +gcl() { + gcl_ls + printf "Remove? " + read yesno + [ "$yesno" != 'y' ] && return 1 + + gcl_ls | xargs rm -v +} + if [ "$TERM" = "xterm" ]; then printf '\e[4?h' fi