commit 44f24053f0c4c0365fdd98f1f7df22992ac0b1db Author: Eugen Wissner Date: Sun Dec 18 11:03:51 2022 +0100 Initial commit diff --git a/.config/git/ignore b/.config/git/ignore new file mode 100644 index 0000000..ba65a75 --- /dev/null +++ b/.config/git/ignore @@ -0,0 +1,2 @@ +.symfony.local.yaml +/application.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c2658d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ diff --git a/.mailcap b/.mailcap new file mode 100644 index 0000000..51d3650 --- /dev/null +++ b/.mailcap @@ -0,0 +1,4 @@ +video/*; mpv %s > /dev/null +image/*; geeqie %s > /dev/null +text/html; firefox '%s' +application/pdf; zathura '%s' diff --git a/.zshenv b/.zshenv new file mode 100644 index 0000000..8fa5a6e --- /dev/null +++ b/.zshenv @@ -0,0 +1,34 @@ +typeset -U path + +path+=( + $HOME/.local/bin + $HOME/.cargo/bin + $HOME/.ghcup/bin + $HOME/.cabal/bin +) + +if [ -n "$HOMEBREW_PREFIX" ] +then + path=( + $HOMEBREW_PREFIX/bin + $HOMEBREW_PREFIX/opt/node@20/bin + $HOMEBREW_PREFIX/opt/php@8.1/bin + $HOMEBREW_PREFIX/opt/libtool/libexec/gnubin + $HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin + $HOMEBREW_PREFIX/opt/grep/libexec/gnubin + $HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin + $HOMEBREW_PREFIX/opt/findutils/libexec/gnubin + $HOMEBREW_PREFIX/opt/make/libexec/gnubin + $HOMEBREW_PREFIX/opt/bison/bin + $path + ) +else + export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh +fi + +export PATH + +export GPG_TTY=$(tty) +export LESS="-R" +export EDITOR="nvim" +export JDTLS_HOME=$HOME/Projects/lsp/eclipse.jdt.ls/org.eclipse.jdt.ls.product/target/repository diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..e579df1 --- /dev/null +++ b/.zshrc @@ -0,0 +1,65 @@ +# Auto completion. +autoload -Uz compinit +zstyle ':completion:*' menu select +zstyle ':completion:*' completer _expand _complete _ignored +zstyle :compinstall filename '$HOME/.zshrc' +zmodload zsh/complist +compinit +_comp_options+=(globdots) + +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +setopt autocd nomatch +unsetopt beep extendedglob notify +# End of lines configured by zsh-newuser-install + +# Prompt left and right. +PROMPT='%n@%m[%T]: %B%F{240}%1~%f%b %# ' +RPROMPT='%(?.%F{green}√.%F{red}?%?)%f' + +bindkey -e # Emacs mode. +# Key bindings. +test -n "$terminfo[kdch1]" && bindkey "$terminfo[kdch1]" delete-char +test -n "$terminfo[kpp]" && bindkey "$terminfo[kpp]" beginning-of-buffer-or-history +test -n "$terminfo[knp]" && bindkey "$terminfo[knp]" end-of-buffer-or-history + +test -n "$terminfo[khome]" && bindkey -M emacs "$terminfo[khome]" beginning-of-line +test -n "$terminfo[kend]" && bindkey -M emacs "$terminfo[kend]" end-of-line + +[[ "$terminfo[khome]" == "O"* ]] && bindkey -M emacs "${terminfo[khome]/O/[}" beginning-of-line +[[ "$terminfo[kend]" == "O"* ]] && bindkey -M emacs "${terminfo[kend]/O/[}" end-of-line + +test -n "$terminfo[kcbt]" && bindkey -M menuselect "$terminfo[kcbt]" reverse-menu-complete + +# Load additional key bindings. +eval "$(fzf --zsh 2> /dev/null)" + +# Aliases. +alias ls='ls --color' la='ls -a' ll='ls -l' lla='ll -a' +alias mc='mc -xc' +alias grep='grep --color=auto' + +cp() if [ -t 0 ]; then command cp -i "$@"; else command cp "$@"; fi +mv() if [ -t 0 ]; then command mv -i "$@"; else command mv "$@"; fi +rm() if [ -t 0 ]; then command rm -i "$@"; else command rm "$@"; fi + +# Keep working directory in a new instance for vte terminal emulators +test -f /etc/profile.d/vte.sh && source /etc/profile.d/vte.sh + +# Completion for kitty +kitty + complete setup zsh | source /dev/stdin + +. ~/.zshenv # Restore $PATH to my custom one + +# Plugins +if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ] +then + source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +elif [ -n "$HOMEBREW_PREFIX" -a -f $HOMEBREW_PREFIX/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ] +then + source $HOMEBREW_PREFIX/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +fi + +whence -p fastfetch > /dev/null && fastfetch