diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index cd6dc9c..6387fda 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -8,7 +8,7 @@ bindkey "^[3;5~" delete-char # Command completion autoload -U compinit -[ -f "$COMPDIR/.zcompdump" ] && compinit -d "$COMPDIR/.zcompdump" +compinit -d "$COMPDIR/.zcompdump" # Prompt if [ -f "/usr/bin/liquidprompt" ]; then @@ -33,8 +33,12 @@ if [ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting. fi # SSH agent -# 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" +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 # Aliases [ -f "$MY_CONFIG/.aliases" ] && . "$MY_CONFIG/.aliases" @@ -56,7 +60,7 @@ hash zoxide 2>/dev/null && eval "$(zoxide init zsh)" # # Example: # sudo archlinux-java set java-13-openjdk -[ -d "/usr/lib/jvm/default" ] && export JAVA_HOME="/usr/lib/jvm/default" +export JAVA_HOME="/usr/lib/jvm/default" # Exit with a success status true diff --git a/.vim/indent/css.vim b/.vim/indent/css.vim deleted file mode 100644 index 891c9bb..0000000 --- a/.vim/indent/css.vim +++ /dev/null @@ -1 +0,0 @@ -set expandtab& diff --git a/README.md b/README.md index 0aa2d2f..072b400 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-all poppler zoxide +pacman -S yazi unarchiver ffmpegthumbnailer fd ripgrep poppler zoxide # Rust pacman -S cargo-audit cargo-outdated cargo-release rustup # Python