# vim: set filetype=zsh: # Put this on bottom of ~/.zshrc # https://lgug2z.com/articles/sensible-wordchars-for-most-developers/ export WORDCHARS="*?[]~=&;!#$%^(){}<>" # nvim if command -v nvim &>/dev/null; then export EDITOR=nvim export VISUAL=nvim export GIT_EDITOR=nvim alias vi="nvim" alias vim="nvim" fi # go export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin # Depend on your company # Please copy this manually to ~/.zshrc # export GOPRIVATE=example.company.com # fzf # https://github.com/junegunn/fzf if command -v fzf &>/dev/null; then if command -v fd &>/dev/null; then export FZF_DEFAULT_COMMAND="fd --type file" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_ALT_C_COMMAND="fd --type directory" fi export FZF_DEFAULT_OPTS="\ --color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \ --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \ --color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8" export FZF_CTRL_T_OPTS="--preview 'bat --color=always --line-range=:500 {}'" export FZF_ALT_C_OPTS="--preview 'exa --tree --level 1 {}'" fi # Alias alias g="git" alias moe="make" alias meo="make" # https://github.com/charmbracelet/glow if command -v glow &>/dev/null; then alias gl="glow" fi # https://restic.readthedocs.io/en/latest/manual_rest.html if command -v restic &>/dev/null; then export RESTIC_PASSWORD_FILE=$HOME/.restic_password_file fi # https://github.com/sharkdp/vivid if command -v vivid &>/dev/null; then export LS_COLORS="$(vivid generate catppuccin-mocha)" fi # https://github.com/jarun/nnn if command -v nnn &>/dev/null; then export NNN_FIFO=/tmp/nnn.fifo export NNN_PLUG="p:-preview-tui" fi # https://github.com/talwat/pokeget-rs rand_poke=$((RANDOM % 4)) if [[ $rand_poke -eq 0 ]]; then cat ~/.config/pokeget/pikachu.txt elif [[ $rand_poke -eq 1 ]]; then cat ~/.config/pokeget/clefairy.txt elif [[ $rand_poke -eq 2 ]]; then cat ~/.config/pokeget/ditto.txt elif [[ $rand_poke -eq 3 ]]; then cat ~/.config/pokeget/chikorita.txt fi