diff --git a/dotfiles/.local/share/chezmoi/.chezmoiexternal.toml b/dotfiles/.local/share/chezmoi/.chezmoiexternal.toml index b92b4b03..efd3837d 100644 --- a/dotfiles/.local/share/chezmoi/.chezmoiexternal.toml +++ b/dotfiles/.local/share/chezmoi/.chezmoiexternal.toml @@ -1,35 +1,19 @@ {{- $refreshPeriod := "140h" }} -{{-}} -[".vim/plugged/ale"] +{{- $vimPlugins := .plugins.vim }} +{{- range $vimPlugin := $vimPlugins }} +{{- $folderName := trimSuffix ".git" (last (splitList "/" $vimPlugin)) }} +[".vim/plugged/{{ $folderName }}"] type = "git-repo" - url = "https://github.com/dense-analysis/ale.git" + url = "{{ $vimPlugin }}" refreshPeriod = "{{ $refreshPeriod }}" - [".vim/plugged/ale".pull] - args = ["--ff-only"] -[".vim/plugged/ale"] - type = "git-repo" - url = "https://github.com/pearofducks/ansible-vim.git" - refreshPeriod = "140h" - [".vim/plugged/ale".pull] - args = ["--ff-only"] -[".vim/plugged/ale"] - type = "git-repo" - url = "https://github.com/dense-analysis/ale.git" - refreshPeriod = "140h" - [".vim/plugged/ale".pull] - args = ["--ff-only"] -[".vim/plugged/ale"] - type = "git-repo" - url = "https://github.com/dense-analysis/ale.git" - refreshPeriod = "140h" - [".vim/plugged/ale".pull] - args = ["--ff-only"] -[".vim/plugged/ale"] - type = "git-repo" - url = "https://github.com/dense-analysis/ale.git" - refreshPeriod = "140h" - [".vim/plugged/ale".pull] + [".vim/plugged/{{ $folderName }}".pull] args = ["--ff-only"] +{{- end }} + +[".local/share/delta//themes.gitconfig"] + type = "file" + url = "https://raw.githubusercontent.com/dandavison/delta/master/themes.gitconfig" + refreshPeriod = "{{ $refreshPeriod }}" ### Hack Nerd Font Download {{- if not .host.headless }} @@ -89,4 +73,4 @@ url = "{{ $fontUrlBase }}/{{ $font }}" refreshPeriod = "{{ $refreshPeriod }}" {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/dotfiles/.local/share/chezmoi/dot_Xresources b/dotfiles/.local/share/chezmoi/dot_Xresources new file mode 100644 index 00000000..8b106b5e --- /dev/null +++ b/dotfiles/.local/share/chezmoi/dot_Xresources @@ -0,0 +1,38 @@ + +! general +*background: rgb:16/19/25 +*foreground: rgb:aa/ae/b8 + +! blacks +*color0: rgb:47/4b/56 +*color8: rgb:60/64/6f + +! reds +*color1: rgb:ed/25/4e +*color9: rgb:e5/45/68 + +! greens +*color2: rgb:71/f7/9f +*color10: rgb:81/ed/a9 + +! yellows +*color3: rgb:f9/dc/5c +*color11: rgb:ee/d8/73 + +! blues +*color4: rgb:7c/b7/ff +*color12: rgb:8a/ba/f6 + +! magentas +*color5: rgb:c7/4d/89 +*color13: rgb:c6/65/97 + +! cyans +*color6: rgb:0/c1/e4 +*color14: rgb:27/c2/e0 + +! whites +*color7: rgb:aa/ae/b8 +*color15: rgb:c3/c7/d1 + +xterm*faceName: Hack Nerd Font diff --git a/dotfiles/.local/share/chezmoi/dot_bash_logout b/dotfiles/.local/share/chezmoi/dot_bash_logout new file mode 100644 index 00000000..972aeffc --- /dev/null +++ b/dotfiles/.local/share/chezmoi/dot_bash_logout @@ -0,0 +1,5 @@ +# ~/.bash_logout: executed by bash(1) when login shell exits + +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q +fi diff --git a/dotfiles/.local/share/chezmoi/dot_bash_profile b/dotfiles/.local/share/chezmoi/dot_bash_profile new file mode 100644 index 00000000..2d061264 --- /dev/null +++ b/dotfiles/.local/share/chezmoi/dot_bash_profile @@ -0,0 +1,16 @@ +# Prefer US English +export LANG="en_US" + +# Detect support for advanced terminal features +if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then + export BASH_SUPPORT=true +fi + +# Ensure scripts in ~/.local/bin are executable +find "$HOME/.local/bin" -maxdepth 1 -type f ! -executable | while read LOCAL_BIN_FILE; do + chmod +x "$LOCAL_BIN_FILE" +done +export PATH="$PATH:$HOME/.local/bin" + +# Source the main Bash config +. "$HOME/.bashrc"