diff options
author | Jack Sangdahl <[email protected]> | 2024-08-16 01:20:55 -0600 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2024-08-16 01:20:55 -0600 |
commit | 0cfa26bd5f74e8e6a5b0db6e3e6bcd3a57596383 (patch) | |
tree | 5e35ef30dc7ce0b2a2b65f5fbe508a0e5ded7a46 /.zshrc | |
download | dots-0cfa26bd5f74e8e6a5b0db6e3e6bcd3a57596383.tar.gz dots-0cfa26bd5f74e8e6a5b0db6e3e6bcd3a57596383.zip |
Initial Gentoo configuration files
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 57 |
1 files changed, 57 insertions, 0 deletions
@@ -0,0 +1,57 @@ +#!/bin/zsh + +if test -z "${XDG_RUNTIME_DIR}"; then + export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir + if ! test -d "${XDG_RUNTIME_DIR}"; then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi +fi + +if [ ! -S ~/.ssh/ssh_auth_sock ]; then + eval "$(ssh-agent)" + ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock +fi +export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock +ssh-add -l > /dev/null || ssh-add + +if [ "$(tty)" = "/dev/tty1" ]; then + exec dbus-run-session --autolaunch=$(cat /var/lib/dbus/machine-id) sway +fi + +export HISTFILE=~/.zsh_history +export HISTSIZE=20000 +export SAVEHIST=20000 +export LANG=en_GB.UTF-8 +export BAT_THEME="Solarized (dark)" +export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#657B83" +export GPG_TTY=$(tty) + +path+=("$HOME/.local/bin" "$HOME/.local/qmk_toolchains_linuxX64/bin" "$path[@]") +export PATH + +setopt HIST_IGNORE_ALL_DUPS +setopt HIST_FIND_NO_DUPS + +bindkey -v +bindkey "^?" backward-delete-char +zstyle ':completion:*' completer _complete _ignored +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' +zstyle :compinstall filename '~/.zshrc' +autoload -U compinit && compinit + +eval "$(starship init zsh)" +eval "$(zoxide init zsh)" + +alias l="lsd -la" +alias ls="lsd" +alias tree="lsd --tree" +alias cat="bat --paging=never" +alias cd="z" +alias sudo="doas" +alias cloc="tokei" +alias diff="diff --color=always" +alias fetch="clear && printf '\n' && pfetch && sleep 10" + +source /usr/share/zsh/site-functions/zsh-autosuggestions.zsh +source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh |