chore: random pokemon zsh

main
sudo pacman -Syu 2024-05-10 15:25:11 +07:00
parent 2578dd0802
commit 12ba1b56d2
4 changed files with 82 additions and 75 deletions

View File

@ -1,18 +0,0 @@
▄▄▄▄▄▄▄ ▄▄ ▄▄
▄▄▄▄▄▄▄▄▄▄ ▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄ ▀▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▀ ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄
▀▄▄▀▀▀▀ ▀▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄ ▀▄▄▄▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▀▄▄▄▀
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▀▀ ▀▄▄▄▄▄▄▄▄
▀▀▀ ▄▄▄▄▄▄▀
▀▄▄▄▄▀

11
data/pokeget/machoke.txt Normal file
View File

@ -0,0 +1,11 @@
▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▄▄▀ ▄▄▄▄▄▄▄▄▄▄▀▀▄▄▀▀
▄▄▄▄▄▄▄▄▄▄▄▄
▀▄▄▄▀▀▀▄▄▄▄▄▄
▀▄▄▄▄▄

View File

@ -31,11 +31,11 @@ export GIT_COMPLETION_CHECKOUT_NO_GUESS=1
# nvim
if command -v nvim &>/dev/null; then
export EDITOR=nvim
export VISUAL=nvim
export GIT_EDITOR=nvim
alias vi="nvim"
alias vim="nvim"
export EDITOR=nvim
export VISUAL=nvim
export GIT_EDITOR=nvim
alias vi="nvim"
alias vim="nvim"
fi
# go
@ -48,131 +48,145 @@ export PATH=$PATH:$GOPATH/bin
# fzf
# https://github.com/junegunn/fzf
if command -v fzf &>/dev/null; then
export FZF_COMPLETION_TRIGGER='~~'
export FZF_COMPLETION_TRIGGER='~~'
if command -v fd &>/dev/null; then
_fzf_compgen_path() {
fd --type file . "$1"
}
if command -v fd &>/dev/null; then
_fzf_compgen_path() {
fd --type file . "$1"
}
_fzf_compgen_dir() {
fd --type directory . "$1"
}
_fzf_compgen_dir() {
fd --type directory . "$1"
}
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type directory --color=always"
fi
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="fd --type directory --color=always"
fi
# https://github.com/catppuccin/fzf
export FZF_DEFAULT_OPTS="\
# https://github.com/catppuccin/fzf
export FZF_DEFAULT_OPTS="\
--ansi \
--pointer='🔫' --prompt='🪓 ' \
--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"
if command -v bat &>/dev/null; then
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --line-range=:500 {}'"
fi
if command -v bat &>/dev/null; then
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --line-range=:500 {}'"
fi
if command -v eza &>/dev/null; then
export FZF_ALT_C_OPTS="--preview 'eza --tree --level 1 {}'"
fi
if command -v eza &>/dev/null; then
export FZF_ALT_C_OPTS="--preview 'eza --tree --level 1 {}'"
fi
fi
# https://github.com/BurntSushi/ripgrep
if command -v rg &>/dev/null; then
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/ripgreprc"
export RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/ripgreprc"
fi
# https://github.com/eza-community/eza
if command -v eza &>/dev/null; then
alias ls="eza"
alias la="eza -la"
alias lt="eza --tree"
alias ls="eza"
alias la="eza -la"
alias lt="eza --tree"
fi
# https://github.com/kovidgoyal/kitty
if command -v kitten &>/dev/null; then
alias kssh="kitten ssh"
alias kssh="kitten ssh"
fi
# https://github.com/wilfred/difftastic
if command -v difft &>/dev/null; then
export DFT_DISPLAY=inline
export DFT_TAB_WIDTH=2
export DFT_DISPLAY=inline
export DFT_TAB_WIDTH=2
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
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)"
export LS_COLORS="$(vivid generate catppuccin-mocha)"
fi
# https://github.com/ajeetdsouza/zoxide
if command -v zoxide &>/dev/null; then
eval "$(zoxide init zsh)"
eval "$(zoxide init zsh)"
fi
# https://github.com/walles/moar
if command -v moar &>/dev/null; then
export MOAR="-no-linenumbers -no-statusbar -quit-if-one-screen -wrap"
export PAGER=moar
export MOAR="-no-linenumbers -no-statusbar -quit-if-one-screen -wrap"
export PAGER=moar
fi
# https://github.com/atuinsh/atuin
if command -v atuin &>/dev/null; then
eval "$(atuin init zsh --disable-up-arrow)"
eval "$(atuin init zsh --disable-up-arrow)"
fi
# https://github.com/extrawurst/gitui
if command -v gitui &>/dev/null; then
alias gu="gitui"
alias gu="gitui"
fi
# https://github.com/Schniz/fnm
if command -v fnm &>/dev/null; then
eval "$(fnm env --use-on-cd)"
eval "$(fnm env --use-on-cd)"
fi
# https://github.com/pyenv/pyenv
if command -v pyenv &>/dev/null; then
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
export PYTHON_CONFIGURE_OPTS="--enable-framework --enable-optimizations --with-lto"
export PYTHON_CFLAGS='-march=native -mtune=native'
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
export PYTHON_CONFIGURE_OPTS="--enable-framework --enable-optimizations --with-lto"
export PYTHON_CFLAGS='-march=native -mtune=native'
fi
# https://github.com/ankitpokhrel/jira-cli
if command -v jira &>/dev/null; then
# Remember to jira init local not cloud
# Depend on your company
export JIRA_AUTH_TYPE=bearer
# Remember to jira init local not cloud
# Depend on your company
export JIRA_AUTH_TYPE=bearer
fi
# https://github.com/orhun/daktilo
if command -v daktilo &>/dev/null; then
export DAKTILO_CONFIG="$HOME/.config/daktilo/daktilo.toml"
export DAKTILO_CONFIG="$HOME/.config/daktilo/daktilo.toml"
fi
# https://github.com/talwat/pokeget-rs
rand_poke=$((RANDOM % 6))
rand_poke=$((RANDOM % 13))
if [[ $rand_poke -eq 0 ]]; then
cat ~/.config/pokeget/pikachu.txt
cat ~/.config/pokeget/bulbasaur.txt
elif [[ $rand_poke -eq 1 ]]; then
cat ~/.config/pokeget/clefairy.txt
cat ~/.config/pokeget/charmeleon.txt
elif [[ $rand_poke -eq 2 ]]; then
cat ~/.config/pokeget/ditto.txt
cat ~/.config/pokeget/chikorita.txt
elif [[ $rand_poke -eq 3 ]]; then
cat ~/.config/pokeget/chikorita.txt
cat ~/.config/pokeget/clefairy.txt
elif [[ $rand_poke -eq 4 ]]; then
cat ~/.config/pokeget/eevee.txt
cat ~/.config/pokeget/ditto.txt
elif [[ $rand_poke -eq 5 ]]; then
cat ~/.config/pokeget/squirtle.txt
cat ~/.config/pokeget/dratini.txt
elif [[ $rand_poke -eq 6 ]]; then
cat ~/.config/pokeget/eevee.txt
elif [[ $rand_poke -eq 7 ]]; then
cat ~/.config/pokeget/machoke.txt
elif [[ $rand_poke -eq 8 ]]; then
cat ~/.config/pokeget/pikachu-world-cap.txt
elif [[ $rand_poke -eq 9 ]]; then
cat ~/.config/pokeget/pikachu.txt
elif [[ $rand_poke -eq 10 ]]; then
cat ~/.config/pokeget/psyduck.txt
elif [[ $rand_poke -eq 11 ]]; then
cat ~/.config/pokeget/slowpoke.txt
elif [[ $rand_poke -eq 12 ]]; then
cat ~/.config/pokeget/squirtle.txt
fi

View File

@ -23,7 +23,7 @@ pokeget --hide-name clefairy >data/pokeget/clefairy.txt
pokeget --hide-name ditto >data/pokeget/ditto.txt
pokeget --hide-name dratini >data/pokeget/dratini.txt
pokeget --hide-name eevee >data/pokeget/eevee.txt
pokeget --hide-name machamp >data/pokeget/machamp.txt
pokeget --hide-name machoke >data/pokeget/machoke.txt
pokeget --hide-name pikachu >data/pokeget/pikachu.txt
pokeget --hide-name pikachu-world-cap >data/pokeget/pikachu-world-cap.txt
pokeget --hide-name psyduck >data/pokeget/psyduck.txt