# Completion for kitty autoload -Uz compinit compinit kitty + complete setup zsh | source /dev/stdin # ZSH plugins fpath=($HOME/.completion_zsh $fpath) plugins=(zsh-autosuggestions git virtualenv ipfs golang man pip ripgrep rust sudo ufw zoxide) source $HOME/.oh-my-zsh/oh-my-zsh.sh # ip command colour alias ip='ip -color=auto' # git alias gp='git push origin main' # alternatives alias age='rage -i ~/Documents/.keys/age.txt' alias fetch='macchina -t Meow' alias youtube-dl='yt-dlp' alias cat-leg='/usr/bin/cat' alias cat='bat --theme "Coldark-Dark"' alias ls='lsd' alias ll='lsd -l' alias la='lsd -la' alias tree='lsd --tree' alias rip='rip --graveyard ~/.local/share/Trash/files' alias oxipng='oxipng -o 6 --strip all' alias http='xh' # 🐈 alias meow='echo "mraow! *pat pat*"' # ~keithmail client function keithmail() { if [ "$1" != "" ] then xh -p h -f POST https://keithhacks.cyou/mail.php message=$2 else response=$(echo $(xh GET https://keithhacks.cyou/mail.php) | sed 's/.*
//' | sed 's/<\/section>.*//') echo $response | html2text | bat -l markdown -r 1:40 #| lynx -dump -stdin fi } # wget clone whole site # https://gist.github.com/mikecrittenden/fe02c59fed1aeebd0a9697cf7e9f5c0c function clone() { domain=$(echo $1 | awk -F\[/:\] '{print $4}') echo $domain wget \ --mirror \ --no-clobber \ --restrict-file-names=windows \ --page-requisites \ --adjust-extension \ --span-hosts \ --convert-links \ --domains yoursite.com \ --no-parent $domain \ "$1" # The URL to download } # use ouch function _use_ouch() { echo "use ouch!!" return 1 } alias tar=_use_ouch alias gzip=_use_ouch alias gunzip=_use_ouch alias bzip2=_use_ouch alias bunzip2=_use_ouch alias zip=_use_ouch alias unzip=_use_ouch alias zstd=_use_ouch export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion eval "$(starship init zsh)" # opam configuration [[ ! -r /home/erin/.opam/opam-init/init.zsh ]] || source /home/erin/.opam/opam-init/init.zsh > /dev/null 2> /dev/null # Shell history search export MCFLY_RESULTS=20 eval "$(mcfly init zsh)" eval "$(zoxide init zsh)" # BEGIN_KITTY_SHELL_INTEGRATION if test -e "$HOME/src/kitty/shell-integration/kitty.zsh"; then source "$HOME/src/kitty/shell-integration/kitty.zsh"; fi # END_KITTY_SHELL_INTEGRATION # SSH-agent stuff if ! pgrep -u "$USER" ssh-agent > /dev/null; then ssh-agent -t 5h > "$XDG_RUNTIME_DIR/ssh-agent.env" fi if [[ ! "$SSH_AUTH_SOCK" ]]; then source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null fi