commit 2d2a8f78ad8c5f780c9d54d1fa5258583705e7ca from: Benjamin Stürz date: Wed Aug 14 12:39:35 2024 UTC mykshrc: add gcli{,_ls} commit - bc84eb21682d8128ab0bd529711d428e9ebd1923 commit + 2d2a8f78ad8c5f780c9d54d1fa5258583705e7ca blob - b04600aef63d9e58ae5e6f8ec9e9446722ee5630 blob + fa754f9629d6ca70763c508c9fd5819cf379cb41 --- etc/common/mykshrc +++ etc/common/mykshrc @@ -149,6 +149,19 @@ gcl() { gcl_ls "$@" | xargs rm -v } +gcli_ls() { + gcl_ls | grep -v '\.vscode' +} + +gcli() { + gcli_ls + printf "Remove? " + read yesno + [ "$yesno" != 'y' ] && return 1 + + gcli_ls | xargs rm -v +} + if [ "$TERM" = "xterm" ]; then printf '\e[4?h' fi