feat(zinit): integrate zinit for improved shell configuration #1

Merged
vokhactri merged 17 commits from feat/zinit into main 2025-04-18 20:50:42 +07:00
7 changed files with 4 additions and 112 deletions
Showing only changes of commit 398aa1e864 - Show all commits

No files matched your search

@@ -1 +0,0 @@
[]
@@ -1,87 +0,0 @@
{
"editor.acceptSuggestionOnEnter": "on",
"editor.accessibilitySupport": "off",
"editor.bracketPairColorization.enabled": true,
"editor.colorDecorators": true,
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "on",
"editor.fontFamily": "JetBrainsMono Nerd Font",
"editor.fontLigatures": true,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.largeFileOptimizations": false,
"editor.linkedEditing": true,
"editor.quickSuggestions": {
"strings": true
},
"editor.rulers": [
80
],
"editor.semanticHighlighting.enabled": "configuredByTheme",
"editor.smoothScrolling": true,
"editor.suggestSelection": "first",
"editor.tabSize": 2,
"emmet.includeLanguages": {
"postcss": "css"
},
"eslint.format.enable": true,
"explorer.fileNesting.enabled": false,
"files.eol": "\n",
"files.exclude": {},
"files.simpleDialog.enable": true,
"files.trimTrailingWhitespace": true,
"json.maxItemsComputed": 100000,
"search.searchOnType": false,
"security.workspace.trust.untrustedFiles": "open",
"telemetry.telemetryLevel": "off",
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.defaultProfile.windows": "PowerShell Core",
"terminal.integrated.fontFamily": "JetBrainsMono Nerd Font",
"terminal.integrated.gpuAcceleration": "on",
"terminal.integrated.persistentSessionReviveProcess": "never",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.updateImportsOnFileMove.enabled": "always",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"window.autoDetectColorScheme": false,
"workbench.editor.preferHistoryBasedLanguageDetection": true,
"workbench.list.smoothScrolling": true,
"workbench.startupEditor": "none",
"git.autofetch": true,
"css.validate": false,
"diffEditor.ignoreTrimWhitespace": false,
"files.watcherExclude": {
// "**/public/**": true
},
"search.exclude": {
// "**/public": true
},
"editor.inlineSuggest.enabled": false,
"git.ignoreRebaseWarning": true,
"[vue]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"vue.complete.casing.props": "kebab",
"vue.complete.casing.tags": "kebab",
"vsicons.dontShowNewVersionMessage": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"git.enableSmartCommit": true,
"syncSettings.resources": [
"extensions",
"keybindings",
"settings",
"snippets",
"uiState"
],
"workbench.iconTheme": "vscode-icons",
"editor.fontSize": 14
}
-8
View File
@@ -1,8 +0,0 @@
{
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"itemUrl": "https://marketplace.visualstudio.com/items",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"controlUrl": ""
}
}
+4 -4
View File
@@ -4,11 +4,9 @@ source $ZDOTDIR/zinit.zsh
# load remote plugins # load remote plugins
zinit wait lucid light-mode for \ zinit wait lucid light-mode for \
wintermi/zsh-brew \ wintermi/zsh-brew \
zap-zsh/supercharge \
wintermi/zsh-fnm \
hlissner/zsh-autopair \ hlissner/zsh-autopair \
atinit"zicompinit; zicdreplay -q" \ atinit"zicompinit; zicdreplay -q" \
zdharma-continuum/fast-syntax-highlighting \ zdharma-continuum/fast-syntax-highlighting zap-zsh/supercharge \
atload"_zsh_autosuggest_start" \ atload"_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions \ zsh-users/zsh-autosuggestions \
blockf atpull'zinit creinstall -q .' \ blockf atpull'zinit creinstall -q .' \
@@ -28,7 +26,9 @@ zinit light starship/starship
zinit as"command" wait lucid light-mode from"gh-r" for \ zinit as"command" wait lucid light-mode from"gh-r" for \
pick"bat-*/bat" atclone'cd $(ls -d */|head -n 1); cp autocomplete/bat.zsh _bat' atpull"%atclone" @sharkdp/bat \ pick"bat-*/bat" atclone'cd $(ls -d */|head -n 1); cp autocomplete/bat.zsh _bat' atpull"%atclone" @sharkdp/bat \
pick"lsd-*/lsd" lsd-rs/lsd \ pick"lsd-*/lsd" lsd-rs/lsd \
pick"micro-*/micro" zyedidia/micro \
atclone"./zoxide init zsh > init.zsh" atpull"%atclone" src"init.zsh" \ atclone"./zoxide init zsh > init.zsh" atpull"%atclone" src"init.zsh" \
ajeetdsouza/zoxide \ ajeetdsouza/zoxide \
atclone"./fzf --zsh > init.zsh" atpull="%atclone" src"init.zsh" \ atclone"./fzf --zsh > init.zsh" atpull="%atclone" src"init.zsh" \
junegunn/fzf junegunn/fzf \
atclone"./fnm env --use-on-cd > init.zsh" atpull"%atclone" src"init.zsh" Schniz/fnm
-2
View File
@@ -1,5 +1,3 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
[ -x "$(command -v bat)" ] && alias cat="bat" [ -x "$(command -v bat)" ] && alias cat="bat"
[ -x "$(command -v codium)" ] && alias code="codium"
[ -x "$(command -v nvim)" ] && alias v="nvim"
-5
View File
@@ -1,5 +0,0 @@
#!/usr/bin/env zsh
command -v zoxide > /dev/null 2>&1 && eval "$(zoxide init zsh)"
command -v starship > /dev/null 2>&1 && eval "$(starship init zsh)"
command -v opam > /dev/null 2>&1 && eval $(opam env)
-5
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
HISTFILE="$ZDOTDIR"/.zsh_history
HISTSIZE=1000000 HISTSIZE=1000000
SAVEHIST=1000000 SAVEHIST=1000000
@@ -12,7 +11,3 @@ export VISUAL="micro"
export SUDO_EDITOR="micro" export SUDO_EDITOR="micro"
export STARSHIP_CONFIG="$XDG_CONFIG_HOME"/starship/starship.toml export STARSHIP_CONFIG="$XDG_CONFIG_HOME"/starship/starship.toml
export NODE_OPTIONS="--dns-result-order=ipv4first"
export PATH="/home/trivk/.local/share/fnm:$PATH"