Created
June 14, 2022 19:37
-
-
Save archae0pteryx/13ba4e3c24b01ea82e220fb7c717585a to your computer and use it in GitHub Desktop.
Dotfiles
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
alias c="cd ~/Code" | |
alias szsh="source ~/.zshrc" | |
alias zshconfig="vim ~/.zshrc" | |
alias alconfig="vim ~/.aliases" | |
alias sshconfig="vim ~/.ssh/config" | |
alias p="ping 8.8.8.8" | |
alias ip="curl https://icanhazip.com" | |
alias gco="git checkout" | |
alias gap="git add -p" | |
alias push="git push" | |
alias gpu="git push -u origin" | |
alias pull="git pull" | |
alias gc="git commit -m" | |
alias greset='git reset $(git commit-tree HEAD^{tree} -m' | |
alias gl="git log --oneline" | |
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gitnuke="git branch | grep -v "master\|main" | xargs git branch -D" | |
alias d="docker" | |
alias dps="docker ps -a" | |
alias drm="docker rm" | |
alias drma="docker ps -a -q -f status=exited | xargs docker rm" | |
alias drmi="docker rmi" | |
alias dc="docker compose" | |
alias dcu="docker compose up" | |
alias dcb="docker compose build" | |
alias dcbn="dcb --no-cache" | |
alias dcd="docker compose down" | |
alias dcdv="dcd -v" | |
alias dcl="dc logs -f" | |
alias dcr="dc restart" | |
alias dcl="dc logs -f" | |
alias rs="bin/rails s" | |
alias rc="bin/rails c" | |
alias be="bundle exec" | |
alias ber="bundle exec rspec" | |
alias k="kubectl" | |
alias killadobe="sudo kill $(ps aux | grep adobe | grep -v grep | awk '{print $2}')" | |
alias fixdisplays="displayplacer list" | |
alias python="python3" |
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
#!/bin/bash | |
# https://ohmyposh.dev/ | |
# Uncomment to set a random posh theme on each shell | |
# POSH_THEME_DIR="$(brew --prefix oh-my-posh)/themes" | |
# LIST_OF_THEMES=() | |
# while IFS='' read -r line; do LIST_OF_THEMES+=("$line"); done < <(find "$POSH_THEME_DIR" -type f -print) | |
# TOTAL_NUM_THEMES=${#LIST_OF_THEMES[@]} | |
# RAND_NUM=$(( RANDOM % TOTAL_NUM_THEMES )) | |
# SELECTED_THEME="${LIST_OF_THEMES[$RAND_NUM]}" | |
# echo "${SELECTED_THEME}" | |
# eval "$(oh-my-posh --init --shell zsh --config ${SELECTED_THEME})" | |
eval "$(oh-my-posh --init --shell zsh --config /usr/local/opt/oh-my-posh/themes/bubbles.omp.json)" | |
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
set number | |
set rnu | |
set scrolloff=8 | |
set smartindent | |
set autoindent | |
set expandtab | |
set shiftwidth=4 | |
set smarttab | |
set softtabstop=4 | |
set autowriteall | |
set undolevels=1000 | |
set hlsearch |
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
export ZSH="/Users/ryan/.oh-my-zsh" | |
source $ZSH/oh-my-zsh.sh | |
#ZSH_THEME=bureau | |
source ~/.posh | |
source ~/.aliases | |
plugins=(git asdf docker nvm) | |
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 | |
[[ /usr/local/bin/kubectl ]] && source <(kubectl completion zsh) | |
# Solana | |
PATH="/Users/ryan/.local/share/solana/install/active_release/bin:$PATH" | |
. "$HOME/.cargo/env" | |
export PATH="$PATH:$HOME/.rvm/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment