You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.0 KiB
Plaintext

# Make aliases and other stuff work in sudo
alias sudo='sudo '
alias vim=$EDITOR
alias vi=$EDITOR
alias v=$EDITOR
alias vimdiff='$EDITOR -d'
alias vdiff='$EDITOR -d'
alias vd='$EDITOR -d'
alias ..='cd ..'
alias ...='cd ../..'
alias q='exit'
# mutt
alias mutt='neomutt'
alias m='neomutt'
alias O="cd ~ && mbsync -a && mu index"
# Gitty gitgit
alias g="git"
alias gf="git-flow"
alias gs="git status"
alias ggpl='git pull origin $(current_branch)'
alias ggps='git push origin $(current_branch)'
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
alias gsmu='git submodule init && git submodule update'
alias gsmuu='git submodule foreach git pull origin master'
alias gmo='$EDITOR $(git ls-files -m)'
alias lg='lazygit'
# tmux
alias t='tmux -u -2'
alias ta='tmux -u attach'
# all in one homebrew, gem update commands
alias brewup='brew update && brew upgrade && brew cu -a -f -y && brew cleanup'
alias upall='brewup && npm-check -gu'
# temp fix for dnsmasq-bootup/unifi-java fuckup
alias dnsmasqfix='sudo brew services stop dnsmasq && sudo mkdir /usr/local/etc/dnsmasq.d && sudo brew services start dnsmasq'
alias unififix='sudo ln -s /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk /Applications/UniFi.app/Contents/PlugIns/adoptopenjdk-8.jdk && sudo v /Applications/UniFi.app/Contents/Info.plist'
# THEN: <key>JVMRuntime</key> <string>adoptopenjdk-8.jdk</string>
# other often used stuff, mostly node/npm
alias ns="npm start"
alias nb="npm run build"
alias npmre='rm -f package-lock.json && rm -rf node_modules && npm install'
alias ys='yarn develop'
alias yp='yarn lint && yarn production'
alias yre='rm -f yarn.lock && rm -rf node_modules && yarn'
# random usefull stuff
alias dnsflush='sudo dscacheutil -flushcache'
alias lock="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
alias anigif='convert -delay 12 -loop 0 *.jpg animated.gif'
alias woffwoff='glyphhanger --subset="*.otf" --formats=woff-zopfli,woff2'