@quickcall/all-configs 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/bin/all-configs.js +44 -0
- package/package.json +20 -4
- package/runtime/allconfigs/__init__.py +1 -0
- package/runtime/allconfigs/__main__.py +42 -0
- package/runtime/allconfigs/__pycache__/__init__.cpython-312.pyc +0 -0
- package/runtime/allconfigs/__pycache__/__main__.cpython-312.pyc +0 -0
- package/runtime/allconfigs/__pycache__/modules.cpython-312.pyc +0 -0
- package/runtime/allconfigs/__pycache__/probe.cpython-312.pyc +0 -0
- package/runtime/allconfigs/__pycache__/runner.cpython-312.pyc +0 -0
- package/runtime/allconfigs/modules.py +221 -0
- package/runtime/allconfigs/probe.py +60 -0
- package/runtime/install.sh +74 -0
- package/runtime/lib/common.sh +147 -0
- package/runtime/lib/uninstall.sh +35 -0
- package/runtime/modules/aldente/install.sh +23 -0
- package/runtime/modules/aldente/module.toml +11 -0
- package/runtime/modules/aliases/aliases.sh +31 -0
- package/runtime/modules/aliases/install.sh +36 -0
- package/runtime/modules/aliases/module.toml +7 -0
- package/runtime/modules/aqua-voice/install.sh +23 -0
- package/runtime/modules/aqua-voice/module.toml +11 -0
- package/runtime/modules/betterdisplay/install.sh +23 -0
- package/runtime/modules/betterdisplay/module.toml +11 -0
- package/runtime/modules/bitwarden/install.sh +19 -0
- package/runtime/modules/bitwarden/module.toml +11 -0
- package/runtime/modules/browsers/install.sh +33 -0
- package/runtime/modules/browsers/module.toml +11 -0
- package/runtime/modules/bun/install.sh +72 -0
- package/runtime/modules/bun/module.toml +7 -0
- package/runtime/modules/caveman/install.sh +79 -0
- package/runtime/modules/caveman/module.toml +7 -0
- package/runtime/modules/claude/install.sh +22 -0
- package/runtime/modules/claude/module.toml +7 -0
- package/runtime/modules/codex/install.sh +20 -0
- package/runtime/modules/codex/module.toml +7 -0
- package/runtime/modules/docker/install.sh +19 -0
- package/runtime/modules/docker/module.toml +11 -0
- package/runtime/modules/external-skills/install.sh +30 -0
- package/runtime/modules/external-skills/module.toml +4 -0
- package/runtime/modules/ffmpeg/install.sh +13 -0
- package/runtime/modules/ffmpeg/module.toml +11 -0
- package/runtime/modules/fonts/install.sh +62 -0
- package/runtime/modules/fonts/module.toml +8 -0
- package/runtime/modules/ghostty/config +44 -0
- package/runtime/modules/ghostty/install.sh +64 -0
- package/runtime/modules/ghostty/module.toml +9 -0
- package/runtime/modules/ghostty/themes/ayu-dark +22 -0
- package/runtime/modules/ghostty/themes/catppuccin-frappe +23 -0
- package/runtime/modules/ghostty/themes/catppuccin-latte +23 -0
- package/runtime/modules/ghostty/themes/catppuccin-latte.conf +23 -0
- package/runtime/modules/ghostty/themes/catppuccin-macchiato +23 -0
- package/runtime/modules/ghostty/themes/catppuccin-mocha +23 -0
- package/runtime/modules/ghostty/themes/visual-studio-light +27 -0
- package/runtime/modules/ghostty/themes/vscode-light +24 -0
- package/runtime/modules/ghostty/themes/vscode-light-soft +24 -0
- package/runtime/modules/ghostty/xterm-ghostty.terminfo +81 -0
- package/runtime/modules/github/install.sh +101 -0
- package/runtime/modules/github/module.toml +8 -0
- package/runtime/modules/hf/install.sh +98 -0
- package/runtime/modules/hf/module.toml +7 -0
- package/runtime/modules/karabiner/README.md +146 -0
- package/runtime/modules/karabiner/agents.md +39 -0
- package/runtime/modules/karabiner/app_launchers.json +236 -0
- package/runtime/modules/karabiner/custom_delete_mapping.json +13 -0
- package/runtime/modules/karabiner/fn_to_control.json +9 -0
- package/runtime/modules/karabiner/install.sh +60 -0
- package/runtime/modules/karabiner/karabiner.json +866 -0
- package/runtime/modules/karabiner/keychron-modifier-swap.sh +80 -0
- package/runtime/modules/karabiner/module.toml +8 -0
- package/runtime/modules/karabiner/remap_caps_lock_shift_super.json +23 -0
- package/runtime/modules/karabiner/remap_escape_to_control.json +49 -0
- package/runtime/modules/karabiner/rename_caps_lock_to_super.json +23 -0
- package/runtime/modules/karabiner/right_shift_mouse_click.json +44 -0
- package/runtime/modules/karabiner/swap_esc_delete.json +10 -0
- package/runtime/modules/karabiner/troubleshooting.md +242 -0
- package/runtime/modules/karabiner/vim_arrow_keys.json +477 -0
- package/runtime/modules/keepingyouawake/install.sh +23 -0
- package/runtime/modules/keepingyouawake/module.toml +11 -0
- package/runtime/modules/keycastr/install.sh +23 -0
- package/runtime/modules/keycastr/module.toml +11 -0
- package/runtime/modules/multi-github/install.sh +179 -0
- package/runtime/modules/multi-github/module.toml +4 -0
- package/runtime/modules/ncdu/install.sh +13 -0
- package/runtime/modules/ncdu/module.toml +11 -0
- package/runtime/modules/node/install.sh +73 -0
- package/runtime/modules/node/module.toml +11 -0
- package/runtime/modules/nvim/.neoconf.json +15 -0
- package/runtime/modules/nvim/init.lua +2 -0
- package/runtime/modules/nvim/install.sh +142 -0
- package/runtime/modules/nvim/lazy-lock.json +35 -0
- package/runtime/modules/nvim/lazyvim.json +10 -0
- package/runtime/modules/nvim/lua/config/autocmds.lua +18 -0
- package/runtime/modules/nvim/lua/config/keymaps.lua +10 -0
- package/runtime/modules/nvim/lua/config/lazy.lua +53 -0
- package/runtime/modules/nvim/lua/config/options.lua +3 -0
- package/runtime/modules/nvim/lua/plugins/image.lua +9 -0
- package/runtime/modules/nvim/lua/plugins/markdown.lua +56 -0
- package/runtime/modules/nvim/lua/plugins/noice.lua +17 -0
- package/runtime/modules/nvim/lua/plugins/rose-pine.lua +16 -0
- package/runtime/modules/nvim/lua/plugins/snacks.lua +20 -0
- package/runtime/modules/nvim/module.toml +8 -0
- package/runtime/modules/nvim/stylua.toml +3 -0
- package/runtime/modules/p10k/install.sh +46 -0
- package/runtime/modules/p10k/module.toml +8 -0
- package/runtime/modules/p10k/p10k.zsh +1711 -0
- package/runtime/modules/pi/install.sh +77 -0
- package/runtime/modules/pi/module.toml +8 -0
- package/runtime/modules/pi/packages +5 -0
- package/runtime/modules/pi/settings.json +21 -0
- package/runtime/modules/presentify/install.sh +25 -0
- package/runtime/modules/presentify/module.toml +7 -0
- package/runtime/modules/rectangle/RectangleConfig.json +353 -0
- package/runtime/modules/rectangle/install.sh +64 -0
- package/runtime/modules/rectangle/module.toml +11 -0
- package/runtime/modules/shortcat/install.sh +19 -0
- package/runtime/modules/shortcat/module.toml +11 -0
- package/runtime/modules/skills/install.sh +25 -0
- package/runtime/modules/skills/module.toml +4 -0
- package/runtime/modules/skills/skills-lock.json +35 -0
- package/runtime/modules/slack/install.sh +23 -0
- package/runtime/modules/slack/module.toml +11 -0
- package/runtime/modules/spotify/install.sh +23 -0
- package/runtime/modules/spotify/module.toml +11 -0
- package/runtime/modules/ssh-keygen/install.sh +130 -0
- package/runtime/modules/ssh-keygen/module.toml +4 -0
- package/runtime/modules/statusline/install.sh +69 -0
- package/runtime/modules/statusline/module.toml +7 -0
- package/runtime/modules/statusline/statusline.sh +168 -0
- package/runtime/modules/statusline/turn-counter.sh +11 -0
- package/runtime/modules/superfile/cheatsheet.md +127 -0
- package/runtime/modules/superfile/config.toml +181 -0
- package/runtime/modules/superfile/hotkeys.toml +96 -0
- package/runtime/modules/superfile/install.sh +73 -0
- package/runtime/modules/superfile/module.toml +7 -0
- package/runtime/modules/tailscale/install.sh +29 -0
- package/runtime/modules/tailscale/module.toml +11 -0
- package/runtime/modules/tinycast/install.sh +68 -0
- package/runtime/modules/tinycast/module.toml +7 -0
- package/runtime/modules/tinycast/settings.json +226 -0
- package/runtime/modules/tmux/.tmux.conf.local +168 -0
- package/runtime/modules/tmux/README.md +50 -0
- package/runtime/modules/tmux/install.sh +57 -0
- package/runtime/modules/tmux/installer.mjs +191 -0
- package/runtime/modules/tmux/module.toml +8 -0
- package/runtime/modules/tmux/shell-helpers.sh +20 -0
- package/runtime/modules/tmux/uninstall.sh +134 -0
- package/runtime/modules/uv/install.sh +72 -0
- package/runtime/modules/uv/module.toml +7 -0
- package/runtime/modules/vlc/install.sh +23 -0
- package/runtime/modules/vlc/module.toml +11 -0
- package/runtime/modules/vscode/install.sh +33 -0
- package/runtime/modules/vscode/keybindings.json +74 -0
- package/runtime/modules/vscode/module.toml +8 -0
- package/runtime/modules/vscode/settings.json +426 -0
- package/runtime/modules/vscode/tasks.json +1 -0
- package/runtime/modules/yt-dlp/install.sh +13 -0
- package/runtime/modules/yt-dlp/module.toml +11 -0
- package/runtime/modules/zed/install.sh +43 -0
- package/runtime/modules/zed/module.toml +8 -0
- package/runtime/modules/zed/settings.json +208 -0
- package/runtime/modules/zoxide/install.sh +41 -0
- package/runtime/modules/zoxide/module.toml +11 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# claude-config tmux shell helpers
|
|
2
|
+
# Sourced from ~/.zshrc / ~/.bashrc by tmux/install.sh
|
|
3
|
+
|
|
4
|
+
# Wrap `tmux new` / `tmux new-session` / bare `tmux` to auto-name session by CWD.
|
|
5
|
+
# Uses -A: attach if session exists, create otherwise (groups under same name per dir).
|
|
6
|
+
tmux() {
|
|
7
|
+
local name sanitized
|
|
8
|
+
case "${1:-}" in
|
|
9
|
+
""|new|new-session)
|
|
10
|
+
# bare `tmux` or `tmux new` without -s → infer name from CWD
|
|
11
|
+
if [[ $# -le 1 ]]; then
|
|
12
|
+
name="${PWD##*/}"
|
|
13
|
+
sanitized="${name//[.: ]/_}"
|
|
14
|
+
command tmux new-session -A -s "$sanitized"
|
|
15
|
+
return $?
|
|
16
|
+
fi
|
|
17
|
+
;;
|
|
18
|
+
esac
|
|
19
|
+
command tmux "$@"
|
|
20
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
TEAL='\033[0;36m'
|
|
5
|
+
GREEN='\033[0;32m'
|
|
6
|
+
YELLOW='\033[0;33m'
|
|
7
|
+
RED='\033[0;31m'
|
|
8
|
+
NC='\033[0m'
|
|
9
|
+
|
|
10
|
+
ok() { echo -e "${GREEN}✓${NC} $1"; }
|
|
11
|
+
warn() { echo -e "${YELLOW}!${NC} $1"; }
|
|
12
|
+
skip() { echo -e " $1 — skipped (not found)"; }
|
|
13
|
+
|
|
14
|
+
echo ""
|
|
15
|
+
echo -e " ${RED}uninstall${NC}"
|
|
16
|
+
echo ""
|
|
17
|
+
|
|
18
|
+
# ─── Confirm ───
|
|
19
|
+
|
|
20
|
+
read -p "This will remove tmux config, nvim config, and all plugins. Continue? (y/N) " -n 1 -r
|
|
21
|
+
echo ""
|
|
22
|
+
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
23
|
+
echo "Cancelled."
|
|
24
|
+
exit 0
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
# ─── Tmux ───
|
|
28
|
+
|
|
29
|
+
echo ""
|
|
30
|
+
echo -e "${TEAL}→${NC} Removing tmux config"
|
|
31
|
+
|
|
32
|
+
if [[ -f "$HOME/.tmux.conf" ]] || [[ -L "$HOME/.tmux.conf" ]]; then
|
|
33
|
+
rm "$HOME/.tmux.conf"
|
|
34
|
+
ok "removed ~/.tmux.conf"
|
|
35
|
+
else
|
|
36
|
+
skip "~/.tmux.conf"
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
# Restore backup if one exists
|
|
40
|
+
LATEST_BACKUP=$(ls -t "$HOME/.tmux.conf.backup."* 2>/dev/null | head -1)
|
|
41
|
+
if [[ -n "$LATEST_BACKUP" ]]; then
|
|
42
|
+
read -p "Restore backup $LATEST_BACKUP? (y/N) " -n 1 -r
|
|
43
|
+
echo ""
|
|
44
|
+
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
45
|
+
cp "$LATEST_BACKUP" "$HOME/.tmux.conf"
|
|
46
|
+
ok "restored from $LATEST_BACKUP"
|
|
47
|
+
fi
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
if [[ -d "$HOME/.tmux/plugins" ]]; then
|
|
51
|
+
rm -rf "$HOME/.tmux/plugins"
|
|
52
|
+
ok "removed tmux plugins"
|
|
53
|
+
else
|
|
54
|
+
skip "tmux plugins"
|
|
55
|
+
fi
|
|
56
|
+
|
|
57
|
+
# ─── Neovim ───
|
|
58
|
+
|
|
59
|
+
echo ""
|
|
60
|
+
echo -e "${TEAL}→${NC} Removing neovim config"
|
|
61
|
+
|
|
62
|
+
if [[ -f "$HOME/.config/nvim/init.lua" ]]; then
|
|
63
|
+
rm "$HOME/.config/nvim/init.lua"
|
|
64
|
+
ok "removed ~/.config/nvim/init.lua"
|
|
65
|
+
else
|
|
66
|
+
skip "~/.config/nvim/init.lua"
|
|
67
|
+
fi
|
|
68
|
+
|
|
69
|
+
# Restore backup if one exists
|
|
70
|
+
LATEST_NVIM_BACKUP=$(ls -t "$HOME/.config/nvim/init.lua.backup."* 2>/dev/null | head -1)
|
|
71
|
+
if [[ -n "$LATEST_NVIM_BACKUP" ]]; then
|
|
72
|
+
read -p "Restore backup $LATEST_NVIM_BACKUP? (y/N) " -n 1 -r
|
|
73
|
+
echo ""
|
|
74
|
+
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
75
|
+
cp "$LATEST_NVIM_BACKUP" "$HOME/.config/nvim/init.lua"
|
|
76
|
+
ok "restored from $LATEST_NVIM_BACKUP"
|
|
77
|
+
fi
|
|
78
|
+
fi
|
|
79
|
+
|
|
80
|
+
if [[ -d "$HOME/.local/share/nvim" ]]; then
|
|
81
|
+
rm -rf "$HOME/.local/share/nvim"
|
|
82
|
+
ok "removed nvim plugin data"
|
|
83
|
+
else
|
|
84
|
+
skip "nvim plugin data"
|
|
85
|
+
fi
|
|
86
|
+
|
|
87
|
+
if [[ -d "$HOME/.local/state/nvim" ]]; then
|
|
88
|
+
rm -rf "$HOME/.local/state/nvim"
|
|
89
|
+
ok "removed nvim state"
|
|
90
|
+
else
|
|
91
|
+
skip "nvim state"
|
|
92
|
+
fi
|
|
93
|
+
|
|
94
|
+
# ─── VS Code / Cursor ───
|
|
95
|
+
|
|
96
|
+
echo ""
|
|
97
|
+
echo -e "${TEAL}→${NC} Cleaning editor settings"
|
|
98
|
+
|
|
99
|
+
clean_editor_settings() {
|
|
100
|
+
local settings_file="$1"
|
|
101
|
+
local editor_name="$2"
|
|
102
|
+
|
|
103
|
+
if [[ ! -f "$settings_file" ]]; then
|
|
104
|
+
skip "$editor_name settings"
|
|
105
|
+
return
|
|
106
|
+
fi
|
|
107
|
+
|
|
108
|
+
if ! grep -q "gpuAcceleration" "$settings_file"; then
|
|
109
|
+
skip "$editor_name (no tmux settings found)"
|
|
110
|
+
return
|
|
111
|
+
fi
|
|
112
|
+
|
|
113
|
+
local tmp=$(mktemp)
|
|
114
|
+
grep -v '"terminal.integrated.gpuAcceleration"' "$settings_file" \
|
|
115
|
+
| grep -v '"terminal.integrated.profiles\.' \
|
|
116
|
+
| grep -v '"terminal.integrated.defaultProfile\.' \
|
|
117
|
+
> "$tmp" && mv "$tmp" "$settings_file"
|
|
118
|
+
ok "$editor_name tmux settings removed"
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if [[ "$(uname -s)" == "Darwin" ]]; then
|
|
122
|
+
clean_editor_settings "$HOME/Library/Application Support/Code/User/settings.json" "VS Code"
|
|
123
|
+
clean_editor_settings "$HOME/Library/Application Support/Cursor/User/settings.json" "Cursor"
|
|
124
|
+
else
|
|
125
|
+
clean_editor_settings "$HOME/.config/Code/User/settings.json" "VS Code"
|
|
126
|
+
clean_editor_settings "$HOME/.config/Cursor/User/settings.json" "Cursor"
|
|
127
|
+
fi
|
|
128
|
+
|
|
129
|
+
# ─── Done ───
|
|
130
|
+
|
|
131
|
+
echo ""
|
|
132
|
+
echo -e "${GREEN}Done.${NC} Configs and plugins removed."
|
|
133
|
+
echo " Packages (tmux, neovim, fzf) were left installed."
|
|
134
|
+
echo ""
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
+
ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
6
|
+
source "$ROOT_DIR/lib/common.sh"
|
|
7
|
+
|
|
8
|
+
usage() {
|
|
9
|
+
cat << USAGE
|
|
10
|
+
Usage: ${0##*/} [options]
|
|
11
|
+
|
|
12
|
+
Options:
|
|
13
|
+
-d, --dir <dir> Installation directory (default: ~/.local/bin)
|
|
14
|
+
-h, --help Show this help
|
|
15
|
+
|
|
16
|
+
Examples:
|
|
17
|
+
${0##*/}
|
|
18
|
+
${0##*/} -d /usr/local/bin
|
|
19
|
+
USAGE
|
|
20
|
+
exit 0
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
# user-writable default: no sudo needed (/usr/local/bin is root-owned on most Linux and Apple Silicon Macs)
|
|
24
|
+
INSTALL_DIR="${INSTALL_DIR:-$HOME/.local/bin}"
|
|
25
|
+
|
|
26
|
+
while [[ $# -gt 0 ]]; do
|
|
27
|
+
case "$1" in
|
|
28
|
+
-d|--dir) INSTALL_DIR="$2"; shift 2 ;;
|
|
29
|
+
-h|--help) usage ;;
|
|
30
|
+
*) fail "Unknown option: $1"; exit 1 ;;
|
|
31
|
+
esac
|
|
32
|
+
done
|
|
33
|
+
|
|
34
|
+
step "Installing uv"
|
|
35
|
+
|
|
36
|
+
if command -v uv &> /dev/null; then
|
|
37
|
+
ok "uv ${D}$(uv --version)${R}"
|
|
38
|
+
exit 0
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
warn "uv not found — installing via official installer"
|
|
42
|
+
|
|
43
|
+
mkdir -p "$INSTALL_DIR"
|
|
44
|
+
|
|
45
|
+
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="$INSTALL_DIR" UV_NO_MODIFY_PATH=1 sh
|
|
46
|
+
export PATH="$INSTALL_DIR:$PATH"
|
|
47
|
+
|
|
48
|
+
if [[ "$INSTALL_DIR" != /usr/local/bin && "$INSTALL_DIR" != /usr/bin ]]; then
|
|
49
|
+
# add the install dir to PATH in shell rc files if not already present
|
|
50
|
+
for rc in "$HOME/.zshrc" "$HOME/.bashrc"; do
|
|
51
|
+
[[ -f "$rc" ]] || continue
|
|
52
|
+
if ! grep -qF "export PATH=\"$INSTALL_DIR:\$PATH\"" "$rc" 2>/dev/null; then
|
|
53
|
+
printf '\n# uv\nexport PATH="%s:$PATH"\n' "$INSTALL_DIR" >> "$rc"
|
|
54
|
+
ok "added $INSTALL_DIR to PATH in $(basename "$rc")"
|
|
55
|
+
fi
|
|
56
|
+
done
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
command -v uv &>/dev/null || { fail "uv not found in $INSTALL_DIR after install"; exit 1; }
|
|
60
|
+
ok "uv installed ${D}$(uv --version)${R}"
|
|
61
|
+
|
|
62
|
+
step "Installing uvx"
|
|
63
|
+
# uvx is installed alongside uv by the same installer
|
|
64
|
+
if command -v uvx &> /dev/null; then
|
|
65
|
+
ok "uvx ${D}$(uvx --version)${R}"
|
|
66
|
+
else
|
|
67
|
+
warn "uvx not found — try opening a new shell"
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
echo ""
|
|
71
|
+
echo -e " ${GRN}Done!${R} Run ${CYN}uv --version${R} to verify"
|
|
72
|
+
echo ""
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
+
ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
6
|
+
source "$ROOT_DIR/lib/common.sh"
|
|
7
|
+
|
|
8
|
+
step "Installing VLC"
|
|
9
|
+
|
|
10
|
+
if [[ "$PLATFORM" != "mac" ]]; then
|
|
11
|
+
warn "VLC module currently supports macOS only"
|
|
12
|
+
exit 0
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
if command -v brew &>/dev/null; then
|
|
16
|
+
brew_install_cask vlc
|
|
17
|
+
else
|
|
18
|
+
warn "Homebrew not found; skipping VLC app install"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
echo ""
|
|
22
|
+
echo -e " ${GRN}Done!${R}"
|
|
23
|
+
echo ""
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
5
|
+
ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
6
|
+
source "$ROOT_DIR/lib/common.sh"
|
|
7
|
+
|
|
8
|
+
step "Installing VS Code"
|
|
9
|
+
|
|
10
|
+
if [[ "$PLATFORM" != "mac" ]]; then
|
|
11
|
+
warn "VS Code module currently supports macOS only"
|
|
12
|
+
exit 0
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
if command -v brew &>/dev/null; then
|
|
16
|
+
brew_install_cask visual-studio-code
|
|
17
|
+
else
|
|
18
|
+
warn "Homebrew not found; skipping VS Code app install"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
DEST_DIR="$HOME/Library/Application Support/Code/User"
|
|
22
|
+
mkdir -p "$DEST_DIR"
|
|
23
|
+
|
|
24
|
+
for file in settings.json keybindings.json tasks.json; do
|
|
25
|
+
[[ -f "$SCRIPT_DIR/$file" ]] || continue
|
|
26
|
+
backup_file "$DEST_DIR/$file"
|
|
27
|
+
cp "$SCRIPT_DIR/$file" "$DEST_DIR/$file"
|
|
28
|
+
ok "$file ${D}→ ~/Library/Application Support/Code/User/$file${R}"
|
|
29
|
+
done
|
|
30
|
+
|
|
31
|
+
echo ""
|
|
32
|
+
echo -e " ${GRN}Done!${R} Restart VS Code to apply"
|
|
33
|
+
echo ""
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// Place your key bindings in this file to override the defaults
|
|
2
|
+
[
|
|
3
|
+
{
|
|
4
|
+
"key": "ctrl+.",
|
|
5
|
+
"command": "workbench.action.quickOpenTerm",
|
|
6
|
+
"when": "terminalHasBeenCreated || terminalProcessSupported"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"key": "cmd+up",
|
|
10
|
+
"command": "-chat.action.focus",
|
|
11
|
+
"when": "inChatInput && isLinux && !quickChatHasFocus || inChatInput && isWindows && !quickChatHasFocus"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"key": "cmd+up",
|
|
15
|
+
"command": "-widgetNavigation.focusPrevious",
|
|
16
|
+
"when": "inputFocus && navigableContainerFocused || navigableContainerFocused && treestickyScrollFocused || navigableContainerFocused && !listFocus || navigableContainerFocused && listScrollAtBoundary == 'both' || navigableContainerFocused && listScrollAtBoundary == 'top'"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"key": "cmd+up",
|
|
20
|
+
"command": "-workbench.action.chat.focusInput",
|
|
21
|
+
"when": "inChat && quickChatHasFocus && !inChatInput"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "cmd+up",
|
|
25
|
+
"command": "-workbench.action.terminal.focusAccessibleBuffer",
|
|
26
|
+
"when": "accessibilityModeEnabled && terminalFocus && terminalHasBeenCreated || accessibilityModeEnabled && terminalFocus && terminalProcessSupported"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "cmd+up",
|
|
30
|
+
"command": "-selectPrevSuggestion",
|
|
31
|
+
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus || suggestWidgetVisible && textInputFocus && !suggestWidgetHasFocusedSuggestion"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "cmd+up",
|
|
35
|
+
"command": "-interactive.history.focus",
|
|
36
|
+
"when": "isCompositeNotebook && isLinux && !notebookEditorFocused || isCompositeNotebook && isWindows && !notebookEditorFocused"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"key": "cmd+up",
|
|
40
|
+
"command": "-notebook.focusTop",
|
|
41
|
+
"when": "notebookEditorFocused && !inputFocus && notebookChatOuterFocusPosition == ''"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "cmd+up",
|
|
45
|
+
"command": "-list.collapse",
|
|
46
|
+
"when": "listFocus && treeElementCanCollapse && !inputFocus && !treestickyScrollFocused || listFocus && treeElementHasParent && !inputFocus && !treestickyScrollFocused"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"key": "cmd+up",
|
|
50
|
+
"command": "-interactive.scrollToTop",
|
|
51
|
+
"when": "activeEditor == 'workbench.editor.interactive'"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"key": "shift+enter",
|
|
55
|
+
"command": "workbench.action.terminal.sendSequence",
|
|
56
|
+
"args": {
|
|
57
|
+
"text": "\u001b\r"
|
|
58
|
+
},
|
|
59
|
+
"when": "terminalFocus"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"key": "ctrl+t",
|
|
63
|
+
"command": "workbench.action.toggleMaximizedPanel"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"key": "ctrl+t",
|
|
67
|
+
"command": "-editor.action.transposeLetters",
|
|
68
|
+
"when": "textInputFocus && !editorReadonly"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"key": "cmd+shift+i",
|
|
72
|
+
"command": "-workbench.action.chat.open"
|
|
73
|
+
}
|
|
74
|
+
]
|