summary refs log tree commit diff
path: root/aliases
blob: 4d469b10d005a5d8632c07061c051378ac0b35ef (plain) (blame)
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
# some aliases
if [[ "${OSTYPE}" =~ "darwin" ]]; then
  alias ls='ls -G'
else
  alias ls='ls --color'
fi

# editor
alias e="$EDITOR"
alias et="TERM=xterm-256color emacsclient -nw"

# generic commands
alias cp="cp -i"
alias l="ls"
alias la="ls -a"
alias ll="ls -lh"
alias lt="ls -lhtr"
alias mv="mv -i"
alias rm="rm -i"
alias utc="date -u"

# tools
alias tmuxa="tmux new-session -A -s work"
alias grep="grep --color=auto"
alias camera-backup="pbackup --bucket fcuny-photos --project fcuny-backups --import-path /Volumes/a6000/DCIM/100MSDCF/"
alias k="kubectl"

# git
alias g="git"
alias gclean="git clean -dfx"

# zsh stuff
alias zshrc="source ~/.zshrc"

alias ohwell="docker-machine restart default"