Created
July 11, 2022 15:17
-
-
Save wh0am1-dev/7672457a23d356dc80753c34f43cfb42 to your computer and use it in GitHub Desktop.
wsl .zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# =-==============-= | |
# | wh0am1.zshrc | | |
# =-==============-= | |
# env | |
export ZSH="/home/wh0am1/.oh-my-zsh" | |
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH=$PYENV_ROOT/bin:$HOME/.yarn/bin:$HOME/bin:/usr/local/bin:$PATH | |
export MANPATH="/usr/local/man:$MANPATH" | |
# oh-my-zsh | |
ZSH_THEME="agnoster" | |
plugins=(git git-auto-fetch dotenv nvm node deno yarn encode64 docker emoji frontend-search command-not-found colored-man-pages) | |
source $ZSH/oh-my-zsh.sh | |
# editors | |
export EDITOR=micro | |
export VISUAL=micro | |
export PAGER=less | |
export LESS="-R" | |
export LESSOPEN="| $(which highlight) %s --out-format xterm256 -l --force -s solarized-light --no-trailing-nl" | |
# functions | |
function pwdf() { | |
figlet -w `tput cols` -f thick `basename $(pwd)` | lolcat -F 0.5 | |
} | |
function dotenv() { | |
set -a | |
[ -f .env ] && . ./.env | |
set +a | |
$@ | |
} | |
# aliases | |
alias hi="clear && cowsay -f eyes ':: shattered continuum ::' | lolcat -F 0.35 && echo" | |
alias new="clear && pwdf && echo && ls -a && echo" | |
alias home="cd && clear && neofetch" | |
alias qwer="clear && ls -a" | |
alias asdf="clear && ls -la" | |
alias zxcv="clear && tree -Ca -L 2" | |
alias e.="explorer.exe ." | |
alias c.="code ." | |
alias hs="http-server" | |
alias more="less" | |
alias less="less -m -N -g -i -J --line-numbers --underline-special --" | |
alias cat="highlight $1 --out-format xterm256 -l --force -s solarized-light --no-trailing-nl" | |
# nvm | |
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
# bun | |
[ -s "/home/wh0am1/.bun/_bun" ] && source "/home/wh0am1/.bun/_bun" | |
export BUN_INSTALL="/home/wh0am1/.bun" | |
export PATH="$BUN_INSTALL/bin:$PATH" | |
# autocomplete | |
autoload -U +X bashcompinit && bashcompinit | |
if command -v pyenv 1>/dev/null 2>&1; then | |
eval "$(pyenv init --path)" | |
# eval "$(pyenv init -)" | |
fi | |
home |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment