Skip to content

Instantly share code, notes, and snippets.

@pinpox

pinpox/.zshrc Secret

Created October 22, 2020 17:40
Show Gist options
  • Save pinpox/87e1b4e2d2cbeff2c26c1aa6177294ff to your computer and use it in GitHub Desktop.
Save pinpox/87e1b4e2d2cbeff2c26c1aa6177294ff to your computer and use it in GitHub Desktop.
typeset -U path cdpath fpath manpath
for profile in ${(z)NIX_PROFILES}; do
fpath+=($profile/share/zsh/site-functions $profile/share/zsh/$ZSH_VERSION/functions $profile/share/zsh/vendor-completions)
done
HELPDIR="/nix/store/2ag4y4nq8ji2583z6svi4xi34dh8l8ak-zsh-5.8/share/zsh/$ZSH_VERSION/help"
eval $(/nix/store/w9wc0d31p4z93cbgxijws03j5s2c4gyf-coreutils-8.31/bin/dircolors -b ~/.dir_colors)
path+="$HOME/.config/zsh/plugins/zsh-abbrev-alias"
fpath+="$HOME/.config/zsh/plugins/zsh-abbrev-alias"
path+="$HOME/.config/zsh/plugins/zsh-async"
fpath+="$HOME/.config/zsh/plugins/zsh-async"
path+="$HOME/.config/zsh/plugins/zsh-colored-man-pages"
fpath+="$HOME/.config/zsh/plugins/zsh-colored-man-pages"
path+="$HOME/.config/zsh/plugins/zsh-syntax-highlighting"
fpath+="$HOME/.config/zsh/plugins/zsh-syntax-highlighting"
path+="$HOME/.config/zsh/plugins/zsh-you-should-use"
fpath+="$HOME/.config/zsh/plugins/zsh-you-should-use"
path+="$HOME/.config/zsh/plugins/pure"
fpath+="$HOME/.config/zsh/plugins/pure"
# Oh-My-Zsh/Prezto calls compinit during initialization,
# calling it twice causes sight start up slowdown
# as all $fpath entries will be traversed again.
autoload -U compinit && compinit
source /nix/store/f5qfzf95794w3b03dqccpraj4rnx2kzi-zsh-autosuggestions-0.6.4/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# Environment variables
. "/home/pinpox/.nix-profile/etc/profile.d/hm-session-vars.sh"
export PURE_PROMPT_SYMBOL="▸"
export RPS1=""
if [ -f "$HOME/.config/zsh/plugins/zsh-abbrev-alias/abbrev-alias.plugin.zsh" ]; then
source "$HOME/.config/zsh/plugins/zsh-abbrev-alias/abbrev-alias.plugin.zsh"
fi
if [ -f "$HOME/.config/zsh/plugins/zsh-async/async.zsh" ]; then
source "$HOME/.config/zsh/plugins/zsh-async/async.zsh"
fi
if [ -f "$HOME/.config/zsh/plugins/zsh-colored-man-pages/colored-man-pages.plugin.zsh" ]; then
source "$HOME/.config/zsh/plugins/zsh-colored-man-pages/colored-man-pages.plugin.zsh"
fi
if [ -f "$HOME/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]; then
source "$HOME/.config/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
fi
if [ -f "$HOME/.config/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh" ]; then
source "$HOME/.config/zsh/plugins/zsh-you-should-use/you-should-use.plugin.zsh"
fi
if [ -f "$HOME/.config/zsh/plugins/pure/pure.plugin.zsh" ]; then
source "$HOME/.config/zsh/plugins/pure/pure.plugin.zsh"
fi
# History options should be set in .zshrc and after oh-my-zsh sourcing.
# See https://github.com/rycee/home-manager/issues/177.
HISTSIZE="10000"
SAVEHIST="15000"
HISTFILE="$HOME/.zsh_history"
mkdir -p "$(dirname "$HISTFILE")"
setopt HIST_FCNTL_LOCK
setopt HIST_IGNORE_DUPS
unsetopt HIST_IGNORE_SPACE
setopt HIST_EXPIRE_DUPS_FIRST
setopt SHARE_HISTORY
unsetopt EXTENDED_HISTORY
setopt autocd
abbrev-alias m="neomutt"
abbrev-alias o="xdg-open"
abbrev-alias q="exit"
abbrev-alias snvim="sudo -E nvim"
abbrev-alias v="nvim"
# Global aliases, get expaned everywhere
abbrev-alias -g G="| rg -i"
abbrev-alias -g P="| tb"
GPG_TTY="$(tty)"
export GPG_TTY
/nix/store/dm55x6yy18vacvr7yagzw9a68s8rx3wr-gnupg-2.2.23/bin/gpg-connect-agent updatestartuptty /bye > /dev/null
eval "$(/nix/store/ppzll5whbrjkgf5k3nabyrlgaj4fh7kd-pazi-0.4.1/bin/pazi init zsh)"
if [[ $options[zle] = on ]]; then
. /nix/store/d5zq7zkbcrw7h0lih7jvf5pm2jznky5s-fzf-0.23.1/share/fzf/completion.zsh
. /nix/store/d5zq7zkbcrw7h0lih7jvf5pm2jznky5s-fzf-0.23.1/share/fzf/key-bindings.zsh
fi
# Aliases
alias c='/nix/store/qnkwgjl5h2jfpz2km1kqrkzxi1wqc2vk-bat-0.16.0/bin/bat -n --decorations never'
alias cc='/nix/store/lfgabqsrb0ja2snr8aalibway4jp5mmk-clang-wrapper-7.1.0/bin/clang -Wall -Wextra -pedantic -std=c99 -Wshadow -Weverything'
alias l='/nix/store/2bz1i5n8c8d5him03w4hid0apzap2p5y-exa-0.9.0/bin/exa -lbF --git --group-directories-first --icons'
alias la='/nix/store/2bz1i5n8c8d5him03w4hid0apzap2p5y-exa-0.9.0/bin/exa -lbhHigmuSa --time-style=long-iso --git --color-scale --group-directories-first --icons'
alias ll='/nix/store/2bz1i5n8c8d5him03w4hid0apzap2p5y-exa-0.9.0/bin/exa -lbGF --git --group-directories-first --icons'
alias llm='/nix/store/2bz1i5n8c8d5him03w4hid0apzap2p5y-exa-0.9.0/bin/exa -lbGd --git --sort=modified --group-directories-first --icons'
alias ls='/nix/store/2bz1i5n8c8d5him03w4hid0apzap2p5y-exa-0.9.0/bin/exa --group-directories-first --icons'
alias lt='/nix/store/2bz1i5n8c8d5him03w4hid0apzap2p5y-exa-0.9.0/bin/exa --tree --level=2 --group-directories-first --icons'
alias lx='/nix/store/2bz1i5n8c8d5him03w4hid0apzap2p5y-exa-0.9.0/bin/exa -lbhHigmuSa@ --time-style=long-iso --git --color-scale --group-directories-first --icons'
alias qr_gen='/nix/store/1px0is1hrb3gg5p2xfa44849afd06hx9-qrencode-4.0.2-bin/bin/qrencode -t ansi -o-'
alias tb='/nix/store/pgjdw9xswx1bprxlzxraix1b0kk4h0xs-netcat-gnu-0.7.1/bin/nc termbin.com 9999'
alias tbc='/nix/store/pgjdw9xswx1bprxlzxraix1b0kk4h0xs-netcat-gnu-0.7.1/bin/nc termbin.com 9999 | /nix/store/hmplgrqfv60k4i0ym5l21dbrjcqapmf7-xclip-0.13/bin/xclip -selection c'
alias top='/nix/store/xl6nwhwrb5mrzrb0p1i7c85w2l4f20lj-htop-3.0.2/bin/htop'
alias vimdiff='nvim -d'
alias weather='/nix/store/fvxsk3fiz8kxidi3r8nl27rkkklffpjj-curl-7.72.0-bin/bin/curl -4 http://wttr.in/Koeln'
# Global Aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment