Created
August 5, 2024 02:38
-
-
Save nullobject/58877cbc61c308550ff763ff5e5bf69b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# History | |
HISTFILE=~/.zsh_history | |
HISTSIZE=1000000 | |
SAVEHIST=1000000 | |
setopt append_history | |
setopt inc_append_history | |
setopt hist_ignore_dups | |
export PATH=$HOME/.local/bin:$HOME/bin:$HOME/oss-cad-suite/bin:$PATH | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='nvim' | |
fi | |
export GPG_TTY=$(tty) | |
alias ga='git add -A' | |
alias gap='ga -p' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' | |
alias gcam='gca --amend' | |
alias gcl='git fetch --prune && git branch --merged main | grep -v main | xargs git branch -d' | |
alias gcm='git commit -v --amend' | |
alias gco='git checkout' | |
alias gd='git diff -M' | |
alias gdc='git diff --cached -M' | |
alias gf='git fetch' | |
alias glog='git log --date-order --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset"' | |
alias gl='glog --graph' | |
alias gla='gl --all' | |
alias gm='git merge --no-ff' | |
alias gmf='git merge --ff-only' | |
alias gp='git push' | |
alias gpf='gp --force-with-lease' | |
alias gpu='git push-upstream' | |
alias gr='git reset' | |
alias grb='git rebase -p' | |
alias grbc='git rebase --continue' | |
alias grbi='git rebase -i' | |
alias grh='git reset --hard' | |
alias grp='gr --patch' | |
alias grsh='git reset --soft HEAD~' | |
alias grv='git remote -v' | |
alias gs='git status' | |
alias gst='git stash' | |
alias gstp='git stash pop' | |
alias gup='git pull' | |
alias ls='lsd' | |
alias ll='lsd -l' | |
alias la='lsd -a' | |
alias vi='nvim' | |
alias vim='nvim' | |
source "$(brew --prefix)/opt/git-extras/share/git-extras/git-extras-completion.zsh" | |
source "$(brew --prefix)/share/google-cloud-sdk/path.zsh.inc" | |
source "$(brew --prefix)/share/google-cloud-sdk/completion.zsh.inc" | |
# Starship | |
eval "$(starship init zsh)" | |
# ASDF | |
source "$(brew --prefix)/opt/asdf/libexec/asdf.sh" | |
# LLVM | |
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib" | |
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include" | |
export PATH="/opt/homebrew/opt/llvm/bin:$PATH" | |
export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib" | |
# bun | |
export BUN_INSTALL="$HOME/.bun" | |
export PATH="$BUN_INSTALL/bin:$PATH" | |
[ -s "/Users/josh/.bun/_bun" ] && source "/Users/josh/.bun/_bun" | |
# Deno | |
export DENO_INSTALL="$HOME/.deno" | |
export PATH="$DENO_INSTALL/bin:$PATH" | |
# zoxide | |
eval "$(zoxide init zsh)" | |
[ -f "/Users/josh/.ghcup/env" ] && source "/Users/josh/.ghcup/env" # ghcup-env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment