Created
March 16, 2022 17:50
-
-
Save cfsanderson-fulcrum/d4770b02632cacbf52ea69496934c845 to your computer and use it in GitHub Desktop.
Aliases (~/oh-my-zsh/custom/aliases.zsh)
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
#=============================================================================== | |
# ___ | |
# ____ _/ (_)___ _________ _____ | |
# / __ `/ / / __ `/ ___/ _ \/ ___/ | |
# / /_/ / / / /_/ (__ ) __(__ ) | |
# \__,_/_/_/\__,_/____/\___/____/ | |
# | |
#=============================================================================== | |
# @cfsanderson | |
# General | |
alias bbd='brew bundle dump -f' | |
alias c='clear' | |
alias gs='git switch' | |
alias home='cd $HOME && clear && neofetch' | |
alias hidepaths='defaults write com.apple.finder _FXShowPosixPathInTitle -bool false; killall Finder' | |
alias l='ls -lA' | |
alias mkcdir=mkdir_cd | |
mkdir_cd() { | |
mkdir -p -- "$1" && | |
cd -P -- "$1" && | |
ls -la | |
} | |
alias notes='cd $HOME/Projects/.notes && nvim .' | |
alias showpaths='defaults write com.apple.finder _FXShowPosixPathInTitle -bool true; killall Finder' | |
alias sourcezsh='source $HOME/.config/zsh/.zshrc' | |
alias to=touch_open | |
touch_open() { | |
if ! [ "$1" ]; then | |
echo "need a file!" >&2 | |
return 1 | |
fi | |
: > "$1" && vim "$1" | |
} | |
alias tp='trash-put' | |
alias todo='cd $HOME/Projects/.notes && vim 000_TODO.md' | |
alias vim='nvim' | |
alias ogvim='vim' | |
# Configs | |
alias conf='/usr/bin/git --git-dir=/Users/caleb/.cfg-dotfiles/ --work-tree=/Users/caleb' | |
alias confalacritty='cd $HOME/.config/alacritty && vim .' | |
alias confalias='vim $HOME/.oh-my-zsh/custom/aliases.zsh' | |
alias conflog='conf log' | |
alias confloga='conf log --oneline --decorate --graph --all' | |
alias confstat='conf status' | |
alias conftmux='vim $HOME/.tmux.conf' | |
alias confvim='vim $HOME/.config/nvim/init.vim' | |
alias confzsh='nvim $HOME/.config/zsh/.zshrc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment