Initial commit
This commit is contained in:
commit
44f24053f0
2
.config/git/ignore
Normal file
2
.config/git/ignore
Normal file
@ -0,0 +1,2 @@
|
||||
.symfony.local.yaml
|
||||
/application.yml
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
node_modules/
|
4
.mailcap
Normal file
4
.mailcap
Normal file
@ -0,0 +1,4 @@
|
||||
video/*; mpv %s > /dev/null
|
||||
image/*; geeqie %s > /dev/null
|
||||
text/html; firefox '%s'
|
||||
application/pdf; zathura '%s'
|
34
.zshenv
Normal file
34
.zshenv
Normal file
@ -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
|
65
.zshrc
Normal file
65
.zshrc
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user