72 lines
1.6 KiB
Bash
72 lines
1.6 KiB
Bash
|
|
# The following lines were added by compinstall
|
|
zstyle :compinstall filename '/home/michael/.zshrc'
|
|
|
|
|
|
fpath=(~/.zsh/completion $fpath)
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
|
|
autoload -Uz _git
|
|
compdef _git git
|
|
|
|
# End of lines added by compinstall
|
|
# Lines configured by zsh-newuser-install
|
|
HISTFILE=~/.zsh_history
|
|
HISTSIZE=10000
|
|
SAVEHIST=10000
|
|
# End of lines configured by zsh-newuser-install
|
|
|
|
|
|
PROMPT='%n@%m:%~> '
|
|
|
|
setopt histignoredups
|
|
setopt share_history
|
|
|
|
|
|
# Key Bindings
|
|
bindkey '^R' history-incremental-search-backward
|
|
|
|
export LS_COLORS="$(cat ~/.ls_colors_tokyonight)"
|
|
|
|
alias mutt='neomutt'
|
|
alias ls='ls --color=auto'
|
|
|
|
# chpwd Funktion für PERL5LIB setzen
|
|
function chpwd() {
|
|
if [[ "$PWD" == $HOME/work/os-autoinst-distri-opensuse* ]]; then
|
|
export PERL5LIB="$HOME/work/os-autoinst-distri-opensuse/lib:$HOME/work/os-autoinst-distri-opensuse/os-autoinst"
|
|
else
|
|
unset PERL5LIB
|
|
fi
|
|
}
|
|
|
|
if [[ "$PWD" == $HOME/work/os-autoinst-distri-opensuse* ]]; then
|
|
export PERL5LIB="$HOME/work/os-autoinst-distri-opensuse/lib"
|
|
fi
|
|
|
|
|
|
|
|
# Pfad zur Datei, die den letzten Ausführungs-Tag speichert
|
|
ORG_AGENDA_RUNFILE="$HOME/.cache/org_agenda_last_run"
|
|
|
|
# Heutiges Datum in JJJJ-MM-TT Format
|
|
today=$(date +%F)
|
|
|
|
# Prüfen, ob die Datei existiert und Datum stimmt
|
|
if [[ ! -f "$ORG_AGENDA_RUNFILE" || "$(cat $ORG_AGENDA_RUNFILE)" != "$today" ]]; then
|
|
# Skript ausführen
|
|
~/bin/org-agenda
|
|
|
|
# Datum in Datei schreiben
|
|
echo "$today" > "$ORG_AGENDA_RUNFILE"
|
|
fi
|
|
|
|
if gpgconf --launch gpg-agent &>/dev/null; then
|
|
export GPG_TTY=$(tty)
|
|
gpg-connect-agent updatestartuptty /bye &>/dev/null
|
|
fi
|
|
|
|
eval "$(keychain --quiet --eval --agents ssh)"
|
|
|