transform zsh files into templates
This commit is contained in:
parent
8ccda61811
commit
ea5957f6d4
2 changed files with 30 additions and 18 deletions
|
|
@ -5,37 +5,46 @@ update_path() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set manually
|
# Set manually
|
||||||
export DOTS="$HOME/.local/share/chezmoi"
|
export REPOS="$HOME/.local/share/chezmoi"
|
||||||
|
export DOTS="$REPOS/Private/dots"
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export VISUAL="$EDITOR"
|
export VISUAL="$EDITOR"
|
||||||
export QT_STYLE_OVERRIDE=kvantum
|
export QT_STYLE_OVERRIDE=kvantum
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
|
||||||
|
update_path "$DOTS/scripts"
|
||||||
|
update_path "$HOME/.local/bin"
|
||||||
|
update_path "$HOME/bin"
|
||||||
|
update_path "/usr/local/bin"
|
||||||
|
|
||||||
# Dev Stuff
|
# Dev Stuff
|
||||||
|
{{ #if (is_executable "npm") }}
|
||||||
export NPM_PACKAGES="$HOME/.npm-packages"
|
export NPM_PACKAGES="$HOME/.npm-packages"
|
||||||
export NODE_PATH="$NPM_PACKAGES/lib/node_modules${NODE_PATH:+:$NODE_PATH}"
|
export NODE_PATH="$NPM_PACKAGES/lib/node_modules${NODE_PATH:+:$NODE_PATH}"
|
||||||
export PNPM_HOME="$HOME/.local/share/pnpm"
|
|
||||||
export ESLINT_USE_FLAT_CONFIG=true
|
|
||||||
# . "$HOME/.cargo/env"
|
|
||||||
# source "$HOME/.rye/env"
|
|
||||||
|
|
||||||
# Unset manpath so we can inherit from /etc/manpath via the `manpath`
|
# Unset manpath so we can inherit from /etc/manpath via the `manpath`
|
||||||
# command
|
# command
|
||||||
unset MANPATH # delete if you already modified MANPATH elsewhere in your config
|
unset MANPATH # delete if you already modified MANPATH elsewhere in your config
|
||||||
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
|
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
|
||||||
|
|
||||||
# PATH
|
|
||||||
update_path "/usr/local/bin"
|
|
||||||
update_path "$HOME/.local/bin"
|
|
||||||
update_path "$HOME/.cargo/bin/"
|
|
||||||
update_path "$HOME/.spicetify"
|
|
||||||
update_path "$DOTS/scripts"
|
|
||||||
update_path "$HOME/bin"
|
|
||||||
update_path "$NPM_PACKAGES/bin"
|
update_path "$NPM_PACKAGES/bin"
|
||||||
update_path "$PNPM_HOME"
|
{{ /if }}
|
||||||
update_path "$HOME/.local/share/rtx/shims"
|
|
||||||
update_path "$HOME/.spicetify"
|
|
||||||
|
|
||||||
if [[ $OSTYPE =~ 'darwin' ]]; then
|
{{ #if (is_executable "pnpm") }}
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
export PNPM_HOME="$HOME/.local/share/pnpm"
|
||||||
fi
|
export ESLINT_USE_FLAT_CONFIG=true
|
||||||
|
update_path "$PNPM_HOME"
|
||||||
|
{{ /if }}
|
||||||
|
|
||||||
|
{{ #if (is_executable "rye") }}
|
||||||
|
source "$HOME/.rye/env"
|
||||||
|
{{ /if }}
|
||||||
|
|
||||||
|
{{ #if (is_executable "cargo") }}
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
update_path "$HOME/.cargo/bin/"
|
||||||
|
{{ /if }}
|
||||||
|
|
||||||
|
{{~ #if (eq (env_var "OS") "macos") }}
|
||||||
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
|
{{ /if ~}}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,10 @@ zinit snippet "https://raw.githubusercontent.com/catppuccin/zsh-syntax-highlight
|
||||||
zinit light zsh-users/zsh-syntax-highlighting
|
zinit light zsh-users/zsh-syntax-highlighting
|
||||||
zinit light zsh-users/zsh-completions
|
zinit light zsh-users/zsh-completions
|
||||||
zinit light zsh-users/zsh-autosuggestions
|
zinit light zsh-users/zsh-autosuggestions
|
||||||
|
|
||||||
|
{{ #if dotter.packages.fzf }}
|
||||||
zinit light Aloxaf/fzf-tab
|
zinit light Aloxaf/fzf-tab
|
||||||
|
{{ /if }}
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
# ╭──────────────────────────────────────────────────────────╮
|
||||||
# │ Oh My Zsh snippets │
|
# │ Oh My Zsh snippets │
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue