From 6134356496a5f3780a68952ef7f9f6beb860ba09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 18:41:11 +0100 Subject: [PATCH 1/4] Use ripgrep-all instead of ripgrep --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 072b400..0aa2d2f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ pacman -S bat duf eza htop inetutils jq kitty-terminfo neovim openssh tmux trans pacman -S shared-mime-info xdg-user-dirs pacman -S reflector pacman -S skim -pacman -S yazi unarchiver ffmpegthumbnailer fd ripgrep poppler zoxide +pacman -S yazi unarchiver ffmpegthumbnailer fd ripgrep-all poppler zoxide # Rust pacman -S cargo-audit cargo-outdated cargo-release rustup # Python From 9846fcab7103f996bc949221b94e2d222739950d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 18:42:25 +0100 Subject: [PATCH 2/4] Add missing tests --- .config/zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 6387fda..b79416a 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -8,7 +8,7 @@ bindkey "^[3;5~" delete-char # Command completion autoload -U compinit -compinit -d "$COMPDIR/.zcompdump" +[ -f "$COMPDIR/.zcompdump" ] && compinit -d "$COMPDIR/.zcompdump" # Prompt if [ -f "/usr/bin/liquidprompt" ]; then @@ -60,7 +60,7 @@ hash zoxide 2>/dev/null && eval "$(zoxide init zsh)" # # Example: # sudo archlinux-java set java-13-openjdk -export JAVA_HOME="/usr/lib/jvm/default" +[ -d "/usr/lib/jvm/default" ] && export JAVA_HOME="/usr/lib/jvm/default" # Exit with a success status true From f16a62dcd52cf1680cb110cd926e730d6b691754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 18:42:46 +0100 Subject: [PATCH 3/4] Indent CSS with tabs --- .vim/indent/css.vim | 1 + 1 file changed, 1 insertion(+) create mode 100644 .vim/indent/css.vim diff --git a/.vim/indent/css.vim b/.vim/indent/css.vim new file mode 100644 index 0000000..891c9bb --- /dev/null +++ b/.vim/indent/css.vim @@ -0,0 +1 @@ +set expandtab& From 228844e6db52a1b77d69b031d70e9dc1599c9f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 15 Dec 2024 18:43:22 +0100 Subject: [PATCH 4/4] Use the ssh-agent service --- .config/zsh/.zshrc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index b79416a..cd6dc9c 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -33,12 +33,8 @@ if [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting. fi # SSH agent -if ! pgrep -u "$USER" ssh-agent > /dev/null; then - ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env" -fi -if [[ ! -f "$SSH_AUTH_SOCK" ]]; then - source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null -fi +# Enable it using `systemctl enable --user ssh-agent.service` +[ -S "$XDG_RUNTIME_DIR/ssh-agent.socket" ] && export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" # Aliases [ -f "$MY_CONFIG/.aliases" ] && . "$MY_CONFIG/.aliases"