This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 将键绑定放在此文件中以覆盖默认值 | |
[ | |
// 在代码和终端间切换 | |
{ "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"}, | |
// 最大化、复原 终端 |