~tardypad/dotfiles

ref: 6c6da645bdf106f6cb251579c4eb42cbb0a19e8d dotfiles/files/configs/zsh/config.d/general.zsh -rw-r--r-- 681 bytes
6c6da645 — Damien Tardy-Panis Remove unused _operands function in _time-tracker completion 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# load dircolors
eval $( dircolors "${HOME}/.dircolors" )

# disable flow control within ZSH
setopt no_flow_control

# enable extended globbing features
setopt extended_glob

# no bell
unsetopt beep

# use run-help utility
unalias run-help 2> /dev/null
autoload -Uz run-help

# reuse ssh-agent across ttys
SSH_AGENT_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/ssh-agent"
ssh-add -l >/dev/null 2>&1
if [ "$?" -eq 2 ]; then
  test -r "${SSH_AGENT_FILE}" && \
  eval "$( < "${SSH_AGENT_FILE}" )" >/dev/null

  ssh-add -l >/dev/null 2>&1
  if [ "$?" -eq 2 ]; then
    (umask 066; ssh-agent > "${SSH_AGENT_FILE}")
    eval "$( < "${SSH_AGENT_FILE}" )" >/dev/null
  fi
fi
unset SSH_AGENT_FILE