feat(zsh): add Atuin integration and new gitconfig script
This commit is contained in:
@ -26,3 +26,6 @@ set -g @catppuccin_status_fill "icon"
|
||||
set -g @catppuccin_status_connect_separator "no"
|
||||
|
||||
set -g @catppuccin_directory_text "#{pane_current_path}"
|
||||
|
||||
set -g @catppuccin_window_current_text "#{window_name}"
|
||||
set -g @catppuccin_window_default_text "#{window_name}"
|
||||
|
@ -1,10 +1,8 @@
|
||||
.git
|
||||
install
|
||||
setup
|
||||
.gitignore
|
||||
.gitmodules
|
||||
.zshenv.template
|
||||
README.md
|
||||
.gitconfig.d
|
||||
post-merge
|
||||
alias.d
|
||||
scripts
|
4
.zshrc
4
.zshrc
@ -145,3 +145,7 @@ export PATH=".:$PATH"
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
. "$HOME/.atuin/bin/env"
|
||||
|
||||
eval "$(atuin init zsh)"
|
||||
|
31
scripts/gitconfig
Executable file
31
scripts/gitconfig
Executable file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CONFIG_DIR="$DOTFILES_INSTALL_DIR/.gitconfig.d"
|
||||
|
||||
echo
|
||||
echo "[+] Generating Gitconfig"
|
||||
echo
|
||||
|
||||
rm -f "$HOME/.gitconfig"
|
||||
|
||||
for config in "$CONFIG_DIR"/*.gitconfig; do
|
||||
[ -e "$config" ] || continue
|
||||
|
||||
filename=$(basename "$config")
|
||||
domain="${filename%.gitconfig}"
|
||||
|
||||
# Skip example.gitconfig
|
||||
if [[ "$filename" == "example.gitconfig" ]]; then
|
||||
echo "Skipping $filename"
|
||||
continue
|
||||
fi
|
||||
|
||||
echo "Create config for $domain"
|
||||
|
||||
cat <<EOF >> "$HOME/.gitconfig"
|
||||
|
||||
[includeIf "hasconfig:remote.*.url:https://**$domain/**"]
|
||||
path = $config
|
||||
EOF
|
||||
|
||||
done
|
Reference in New Issue
Block a user