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=''
@hyliang96
hyliang96 / setting.json
Created May 24, 2019 12:01
my setting.json for VS Code
{
"editor.fontFamily": "Meslo LG S DZ for Powerline",
"terminal.external.osxExec": "iTerm.app",
"python.dataScience.sendSelectionToInteractiveWindow": true,
"python.pythonPath": "/Users/mac/anaconda/bin/python",
// 终端配色
"workbench.colorCustomizations": {
"terminal.background": "#28282a",
@hyliang96
hyliang96 / keybindings.json
Last active November 11, 2019 17:21
my settings.json, keybindings.json for VS Code
// 将键绑定放在此文件中以覆盖默认值
[
// 在代码和终端间切换
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus"},
{ "key": "ctrl+`", "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus"},
// 打开、隐藏内置终端
{ "key": "ctrl+alt+`","command": "workbench.action.terminal.toggleTerminal"},
// 关闭当前终端
{ "key": "ctrl+alt+w","command": "workbench.action.terminal.kill", "when": "terminalFocus"},
// 最大化、复原 终端