summary refs log tree commit diff
path: root/aliases
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--aliases40
1 files changed, 40 insertions, 0 deletions
diff --git a/aliases b/aliases
new file mode 100644
index 0000000..eedc47a
--- /dev/null
+++ b/aliases
@@ -0,0 +1,40 @@
+# 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 tmux="tmux new-session -A -s work"
+alias gerp="grep --color=auto"
+alias grep="grep --color=auto"
+alias pjson="python -mjson.tool"
+
+# git
+alias g="git"
+alias gclean="git clean -dfx"
+alias gst="git status"
+
+# navigation
+alias s="cd ~/src/source"
+alias eb="cd ~/src/source/eventbus"
+alias ops="cd ~/src/twitter-ops"
+alias science="cd ~/src/source/science/"
+
+# zsh stuff
+alias zshrc="source ~/.zshrc"