Skip to content

Instantly share code, notes, and snippets.

# SlowQuitApps Managing cmd tool
slowquit()
{
if [ "$1" = 'help' ]; then
cat <<EOF
slowquit
is a command line tool to manage https://github.com/dteoh/SlowQuitApps,
which can delay to quit when pressing the cmd+Q.
Usage:
@hyliang96
hyliang96 / git-list.sh
Last active March 16, 2020 09:22
list files or dirs traced or ignored by git, just like `ls` does, auto-colored
# list files or dirs traced or ignored by git
# gitls [<path> [<path> ...]] [--ignore] [<other-args-of-ls>]
# --ignore : ls files ignored by git, and dirs contain such files
# without --ignore : ls files traced by git, and dirs contain such files
# without <path> : ls files or dirs under current path
# auto colored
gitls()
{
local git_args=''