Skip to content

Commit eb2bb01

Browse files
feat: update configuration scripts and remove deprecated files
- Removed the IBus engine switcher keybinding from Hyprland configuration for cleaner setup. - Deleted obsolete Shell-GPT ZSH integration script to streamline configurations. - Added new AI development tools to the executable dependencies script, enhancing support for modern coding environments. - Introduced a new script for installing AI tools on Arch Linux, improving setup automation. - Updated VSCode configuration to include GitHub Copilot extensions for enhanced development capabilities.
1 parent 6b68065 commit eb2bb01

9 files changed

Lines changed: 49 additions & 71 deletions

File tree

home/.chezmoiscripts/linux/run_onchange_before_install-shellgpt.sh.tmpl renamed to home/.chezmoiscripts/linux/run_onchange_before_install-ai-tools.sh.tmpl

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
{{ if eq .osid "linux-arch" -}}
44
#!/usr/bin/env bash
55

6+
set -euo pipefail
7+
68
sudo pacman -S --noconfirm --needed \
7-
ollama
9+
nodejs \
10+
npm
811

912
yay -S --noconfirm --needed \
10-
litellm
11-
12-
sudo systemctl enable --now ollama
13-
14-
# ollama pull llama3.1
15-
ollama pull mistral:7b-instruct
16-
17-
pipx install shell-gpt[litellm]
13+
visual-studio-code-bin \
14+
cursor-bin \
15+
claude-code-stable \
16+
pi-coding-agent
1817
{{ end -}}
1918

2019
{{ end -}}

home/.chezmoiscripts/linux/run_onchange_before_install-ibus.sh.tmpl

Lines changed: 0 additions & 24 deletions
This file was deleted.

home/.chezmoiscripts/run_onchange_after_configure-vscode.sh.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
{{ $extensions := list
44
"eamodio.gitlens"
55
"EditorConfig.EditorConfig"
6+
"github.copilot"
7+
"github.copilot-chat"
68
"ms-python.python"
79
"redhat.vscode-yaml"
810
"streetsidesoftware.code-spell-checker"

home/dot_config/hypr/hyprland.conf.d/keybindings.conf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ bind = $mainMod, slash, exec, ~/.local/bin/dots-keyboard-help
4646
# Interactive gaps management (like i3-gaps)
4747
bind = $mainMod SHIFT, G, exec, ~/.config/hypr/scripts/gaps-interactive.sh
4848

49-
# IBus engine switcher (for sgpt)
50-
bind = $mainMod CTRL, Space, exec, ibus engine shin
51-
5249
# Toggle keyboard layout
5350
# bind = ALT SHIFT, Space, exec, ~/.local/bin/dots-keyboard-layout --toggle
5451

home/dot_config/shell_gpt/private_dot_sgptrc.tmpl

Lines changed: 0 additions & 20 deletions
This file was deleted.

home/dot_local/bin/executable_dots-dependencies

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ declare -A DEV_DEPS=(
4444
["kitty"]="Terminal emulator"
4545
["nvim"]="Text editor"
4646
["tmux"]="Terminal multiplexer"
47-
["ranger"]="File manager"
47+
["yazi"]="File manager"
4848
["btop"]="System monitor"
4949
["fastfetch"]="System info"
5050
)
@@ -57,6 +57,14 @@ declare -A MEDIA_DEPS=(
5757
["cava"]="Audio visualizer"
5858
)
5959

60+
# AI development tools (optional)
61+
declare -A AI_DEPS=(
62+
["code"]="Visual Studio Code"
63+
["cursor"]="Cursor AI IDE"
64+
["claude"]="Claude Code CLI"
65+
["pi"]="Pi coding agent"
66+
)
67+
6068
check_dependency() {
6169
local cmd="$1"
6270
local desc="$2"
@@ -97,6 +105,11 @@ check_all_dependencies() {
97105
for cmd in "${!MEDIA_DEPS[@]}"; do
98106
check_dependency "$cmd" "${MEDIA_DEPS[$cmd]}" || true
99107
done
108+
109+
log_info "Checking AI dependencies..."
110+
for cmd in "${!AI_DEPS[@]}"; do
111+
check_dependency "$cmd" "${AI_DEPS[$cmd]}" || true
112+
done
100113
fi
101114

102115
if [[ $missing -gt 0 ]]; then
@@ -130,6 +143,24 @@ install_dependencies() {
130143
echo "📦 Installing chezmoi..."
131144
sh -c "$(curl -fsLS get.chezmoi.io)" -- -b ~/.local/bin
132145
fi
146+
147+
if [[ -n ${optional} ]]; then
148+
log_info "Installing optional AI dependencies..."
149+
if command -v pacman >/dev/null 2>&1; then
150+
sudo pacman -S --needed nodejs npm
151+
if command -v yay >/dev/null 2>&1; then
152+
yay -S --noconfirm --needed \
153+
visual-studio-code-bin \
154+
cursor-bin \
155+
claude-code-stable \
156+
pi-coding-agent
157+
else
158+
echo "⚠️ yay is not installed. Install Cursor/VSCode/Claude/pi manually."
159+
fi
160+
else
161+
echo "ℹ️ Install AI tools manually on this distribution."
162+
fi
163+
fi
133164
}
134165

135166
list_dependencies() {
@@ -159,6 +190,12 @@ list_dependencies() {
159190
for cmd in "${!MEDIA_DEPS[@]}"; do
160191
echo " - $cmd: ${MEDIA_DEPS[$cmd]}"
161192
done
193+
194+
echo ""
195+
echo "AI Dependencies (Optional):"
196+
for cmd in "${!AI_DEPS[@]}"; do
197+
echo " - $cmd: ${AI_DEPS[$cmd]}"
198+
done
162199
fi
163200
}
164201

home/dot_local/lib/dots/easy-options/easyoptions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ parse_options() {
157157

158158
# Parse the provided options
159159
while getopts ":${short_options}-:" option; do
160-
option="${option}${OPTARG}"
160+
option="${option}${OPTARG-}"
161161
option_value=""
162162

163163
# Set the corresponding variable for known options

home/dot_zsh/config.d/sgpt.zsh

Lines changed: 0 additions & 12 deletions
This file was deleted.

home/executable_dot_profile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/pass-store"
99
export GTK_IM_MODULE=ibus
1010
export QT_IM_MODULE=ibus
1111
export XMODIFIERS=@im=ibus
12-
# export SHIN_DEFAULT_COMMAND="sgpt"
1312

1413
# Prioritize gnome-keyring over kwallet system-wide
1514
export PASSWORD_STORE=basic

0 commit comments

Comments
 (0)