Compare commits
No commits in common. "ea5957f6d445bbea741202dbf48fccf704cffedd" and "f33c57f1a4064d7f9bc33242f29619c0c330bfc1" have entirely different histories.
ea5957f6d4
...
f33c57f1a4
6 changed files with 21 additions and 72 deletions
|
|
@ -7,7 +7,7 @@ header = ".dotter/handlebars_helpers/header.rhai"
|
|||
|
||||
# CLI package
|
||||
[cli]
|
||||
depends = ["nvim", "zsh", "fzf", "starship"]
|
||||
depends = ["nvim", "zsh"]
|
||||
|
||||
[cli.variables]
|
||||
nerd_font = "JetBrainsMono"
|
||||
|
|
@ -15,6 +15,7 @@ nerd_font = "JetBrainsMono"
|
|||
[cli.files]
|
||||
"config/bat" = "~/.config/bat"
|
||||
"config/sesh" = "~/.config/sesh"
|
||||
"config/starship.toml" = "~/.config/starship.toml"
|
||||
"config/tmux" = "~/.config/tmux"
|
||||
"config/yazi" = "~/.config/yazi"
|
||||
"config/zellij" = "~/.config/zellij"
|
||||
|
|
@ -33,13 +34,8 @@ depends = ["rust"]
|
|||
"config/zsh/aliases" = {target = "~/.config/zsh/aliases", type="symbolic"}
|
||||
"config/zsh/completions" = {target = "~/.config/zsh/completions", type = "symbolic"}
|
||||
"config/zsh/functions" = "~/.config/zsh/functions"
|
||||
|
||||
[fzf.files]
|
||||
"config/fzf" = "~/.config/fzf"
|
||||
|
||||
[starship.files]
|
||||
"config/starship.toml" = "~/.config/starship.toml"
|
||||
|
||||
[nushell.files]
|
||||
"config/nushell" = "~/.config/nushell"
|
||||
|
||||
|
|
@ -48,6 +44,3 @@ depends = ["rust"]
|
|||
|
||||
[rust.variables]
|
||||
cargo.packages = []
|
||||
|
||||
[mise.files]
|
||||
"config/mise" = "~/.config/mise"
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
sha256sum .dotter/cache/.dotter/pre_deploy.sh >.dotter/cache/pre_deploy.checksum
|
||||
|
|
@ -2,15 +2,6 @@
|
|||
# shellcheck disable=all
|
||||
# This is a handlerbars template, so ignore issues
|
||||
|
||||
|
||||
checksum_file=".dotter/cache/pre_deploy.checksum"
|
||||
|
||||
if [[ -e "$checksum_file" ]] && sha256sum --check "$checksum_file" >/dev/null 2>&1; then
|
||||
echo "Pre deploy script has not changed, skiping script execution"
|
||||
echo "To override this, remove the checksum file: $checksum_file"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
{{!~ Detect the distribution ~}}
|
||||
{{~ assign "distro" (trim (command_output "awk -F= '/^ID=/ {print $2}' /etc/os-release | tr -d '\"'")) ~}}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
includes = [".dotter/machines/fedora.toml"]
|
||||
packages = ["cli", "dev", "mise"]
|
||||
packages = ["cli", "dev"]
|
||||
|
||||
[files]
|
||||
|
||||
|
|
|
|||
|
|
@ -5,46 +5,37 @@ update_path() {
|
|||
}
|
||||
|
||||
# Set manually
|
||||
export REPOS="$HOME/.local/share/chezmoi"
|
||||
export DOTS="$REPOS/Private/dots"
|
||||
export DOTS="$HOME/.local/share/chezmoi"
|
||||
export EDITOR=nvim
|
||||
export VISUAL="$EDITOR"
|
||||
export QT_STYLE_OVERRIDE=kvantum
|
||||
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
|
||||
{{ #if (is_executable "npm") }}
|
||||
export NPM_PACKAGES="$HOME/.npm-packages"
|
||||
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`
|
||||
# command
|
||||
unset MANPATH # delete if you already modified MANPATH elsewhere in your config
|
||||
export MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
|
||||
|
||||
update_path "$NPM_PACKAGES/bin"
|
||||
{{ /if }}
|
||||
|
||||
{{ #if (is_executable "pnpm") }}
|
||||
export PNPM_HOME="$HOME/.local/share/pnpm"
|
||||
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"
|
||||
# PATH
|
||||
update_path "/usr/local/bin"
|
||||
update_path "$HOME/.local/bin"
|
||||
update_path "$HOME/.cargo/bin/"
|
||||
{{ /if }}
|
||||
update_path "$HOME/.spicetify"
|
||||
update_path "$DOTS/scripts"
|
||||
update_path "$HOME/bin"
|
||||
update_path "$NPM_PACKAGES/bin"
|
||||
update_path "$PNPM_HOME"
|
||||
update_path "$HOME/.local/share/rtx/shims"
|
||||
update_path "$HOME/.spicetify"
|
||||
|
||||
{{~ #if (eq (env_var "OS") "macos") }}
|
||||
if [[ $OSTYPE =~ 'darwin' ]]; then
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
{{ /if ~}}
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -26,10 +26,7 @@ zinit snippet "https://raw.githubusercontent.com/catppuccin/zsh-syntax-highlight
|
|||
zinit light zsh-users/zsh-syntax-highlighting
|
||||
zinit light zsh-users/zsh-completions
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
|
||||
{{ #if dotter.packages.fzf }}
|
||||
zinit light Aloxaf/fzf-tab
|
||||
{{ /if }}
|
||||
|
||||
# ╭──────────────────────────────────────────────────────────╮
|
||||
# │ Oh My Zsh snippets │
|
||||
|
|
@ -118,9 +115,6 @@ setopt hist_find_no_dups
|
|||
# case insensitive completion
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||
|
||||
{{ #if dotter.packages.fzf }}
|
||||
|
||||
zstyle ':completion:*' menu no
|
||||
zstyle ':fzf-tab:*' show-group full
|
||||
zstyle ':fzf-tab:*' continuous-trigger '/'
|
||||
|
|
@ -159,8 +153,6 @@ zstyle ':fzf-tab:complete:git-checkout:*' fzf-preview \
|
|||
# TLDR
|
||||
zstyle ':fzf-tab:complete:tldr:argument-1' fzf-preview 'tldr --color always $word'
|
||||
|
||||
{{ /if }}
|
||||
|
||||
# ╭──────────────────────────────────────────────────────────╮
|
||||
# │ ZSH Options │
|
||||
# ╰──────────────────────────────────────────────────────────╯
|
||||
|
|
@ -171,10 +163,7 @@ setopt GLOB_DOTS
|
|||
# ╭──────────────────────────────────────────────────────────╮
|
||||
# │ Source other files │
|
||||
# ╰──────────────────────────────────────────────────────────╯
|
||||
|
||||
{{ #if dotter.packages.fzf }}
|
||||
source $HOME/.config/fzf/fzfrc
|
||||
{{ /if }}
|
||||
|
||||
# this prevents errors and not loading some files
|
||||
for file in $HOME/.config/zsh/**/*.zsh; do
|
||||
|
|
@ -184,19 +173,7 @@ done
|
|||
# ╭──────────────────────────────────────────────────────────╮
|
||||
# │ Init external programs │
|
||||
# ╰──────────────────────────────────────────────────────────╯
|
||||
|
||||
{{ #if dotter.packages.fzf }}
|
||||
eval "$(fzf --zsh)"
|
||||
{{ /if ~}}
|
||||
|
||||
{{ #if (is_executable "zoxide") }}
|
||||
eval "$(zoxide init --cmd cd zsh)"
|
||||
{{ /if ~}}
|
||||
|
||||
{{ #if dotter.packages.starship }}
|
||||
eval "$(starship init zsh)"
|
||||
{{ /if ~}}
|
||||
|
||||
{{ #if dotter.packages.mise }}
|
||||
eval "$(mise activate zsh)"
|
||||
{{ /if ~}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue