-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
36 lines (29 loc) · 797 Bytes
/
.aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
#
# Aliases.
#
# @author Charlie Revett (@revcd).
# Dates.
alias week='date +%V'
alias sprint='date +%V'
# Directories.
alias ~='cd $HOME'
alias dl='cd ~/Downloads'
alias dotfiles='cd ~/projects/github.com/revett/dotfiles'
alias rev='cd ~/projects/github.com/revett'
alias side='cd ~/projects/github.com/8thpark'
alias 8th='side'
alias mono='cd ~/projects/github.com/8thpark/mono'
# General.
alias reload='source ~/.zshrc'
# Git.
alias ggpull='git pull origin $(branch)'
alias ggpush='git push origin $(branch)'
# Network.
alias localip='ifconfig -l | xargs -n1 ipconfig getifaddr'
alias ip='localip'
# Set BSD ls to use coreutils gls.
# https://github.com/sharkdp/vivid#on-macos
alias ls='gls --color'
# Alias the old VS Code command to use Cursor.
alias code='cursor'