Last active
November 16, 2021 17:49
-
-
Save j0hnm4r5/539bd650c568d51de6a040e2b3efa945 to your computer and use it in GitHub Desktop.
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
### ========= POWERLEVEL10K ========= ### | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
### ========= OH MY ZSH ========= ### | |
# oh-my-zsh installation locations | |
export ZSH="/Users/mars/.oh-my-zsh" | |
# oh-my-zsh theme | |
ZSH_THEME="powerlevel10k/powerlevel10k" | |
# oh-my-zsh settings | |
HYPHEN_INSENSITIVE="true" | |
DISABLE_UPDATE_PROMPT="true" | |
ENABLE_CORRECTION="true" | |
COMPLETION_WAITING_DOTS="true" | |
#plugins | |
plugins=(gitfast sudo brew asdf zsh-autosuggestions) | |
source $ZSH/oh-my-zsh.sh | |
### ========= POWERLEVEL10K ========= ### | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
### ========= ENVIRONMENT ========= ### | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/X11/bin:$PATH" | |
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin:$PATH" | |
export MANPATH="/usr/local/man:/usr/share/man:$MANPATH" | |
# preferred editor for local and remote sessions | |
export EDITOR=code | |
export VISUAL=code | |
# asdf version manager | |
. $(brew --prefix asdf)/asdf.sh | |
### ========= ALIASES ========= ### | |
# editing config | |
alias codez='code ~/.zshrc' | |
alias sourz='source ~/.zshrc' | |
# ls | |
alias ls='exa -F --icons' | |
alias lg='exa -F --git --git-ignore --icons' | |
alias la='exa -aF --icons' | |
alias lt='exa -aTF --icons --level 2' | |
alias ll='exa -alhF --octal-permissions --icons' | |
# general | |
alias "cd.."="cd ../" | |
alias rmrf="rm -rf" | |
alias mkdir="mkdir -pv" | |
alias cp="cp -r" | |
alias scp="scp -r" | |
alias cl='clear' | |
# simple server | |
alias serve='npx http-server -p 0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment