feat(revamp): add zsh and neovim configs, add an install script and a dependencies list
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# Aliases
|
||||
|
||||
alias ls="${aliases[ls]:-ls} -A"
|
||||
alias ll="ls -lha"
|
||||
alias la="ls -A"
|
||||
alias tree='tree -a -I .git'
|
||||
@@ -0,0 +1,24 @@
|
||||
# Environment variables
|
||||
|
||||
export VISUAL=nvim
|
||||
export EDITOR="$VISUAL"
|
||||
export GPG_TTY=$TTY
|
||||
export LESS='-g -i -M -R -S -w -z -4'
|
||||
export RTK_TELEMETRY_DISABLED=1
|
||||
|
||||
# PATH vars
|
||||
export GOPATH="$HOME/go"
|
||||
|
||||
# PATH additions
|
||||
typeset -U path
|
||||
path=(
|
||||
$HOME/bin
|
||||
$HOME/.local/bin
|
||||
$HOME/.cargo/bin
|
||||
$HOME/go/bin
|
||||
$HOME/.local/share/gem/ruby/3.0.0/bin
|
||||
$HOME/Android/Sdk/platform-tools
|
||||
$HOME/Android/Sdk/emulator
|
||||
$GOPATH/bin
|
||||
$path
|
||||
)
|
||||
@@ -0,0 +1,8 @@
|
||||
# Functions
|
||||
|
||||
# mkdir and cd into it
|
||||
function md() { [[ $# == 1 ]] && mkdir -p -- "$1" && cd -- "$1" }
|
||||
compdef _directories md
|
||||
|
||||
# Autoloaded utilities
|
||||
autoload -Uz zmv
|
||||
@@ -0,0 +1,6 @@
|
||||
# fzf integration
|
||||
|
||||
if (( $+commands[fzf] )); then
|
||||
source /usr/share/fzf/key-bindings.zsh
|
||||
source /usr/share/fzf/completion.zsh
|
||||
fi
|
||||
@@ -0,0 +1,5 @@
|
||||
# GPG/SSH via yubikey
|
||||
|
||||
export GPG_TTY="$(tty)"
|
||||
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
|
||||
gpg-connect-agent updatestartuptty /bye > /dev/null
|
||||
@@ -0,0 +1,7 @@
|
||||
# Key bindings (beyond what prezto's editor module provides)
|
||||
|
||||
bindkey '^H' backward-kill-word # Ctrl+Backspace
|
||||
bindkey '^[^?' backward-kill-word # Ctrl+Alt+Backspace
|
||||
bindkey '^_' undo # Ctrl+/
|
||||
bindkey '^[/' redo # Alt+/
|
||||
bindkey '^[[3;5~' kill-word # Ctrl+Del: delete word after cursor
|
||||
@@ -0,0 +1,9 @@
|
||||
# Shell options
|
||||
|
||||
setopt glob_dots # no special treatment for file names with a leading dot
|
||||
setopt auto_menu # show completion menu on successive tab presses
|
||||
|
||||
# Completion styling
|
||||
zstyle ':completion:*' menu select # arrow-navigable menu with highlight
|
||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # color completions using LS_COLORS
|
||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # case-insensitive matching
|
||||
Reference in New Issue
Block a user