summary refs log tree commit diff
path: root/aliases
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-03-09 09:21:32 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-03-09 09:21:59 -0800
commit260ca7a284c188b8ad6adb2522f7b05dc32c7a7d (patch)
tree4bc5c5dc2aa73e681be0c1623d07318e3e91a399 /aliases
parent[emacs] Twitter's style check report warnings too (diff)
downloademacs.d-260ca7a284c188b8ad6adb2522f7b05dc32c7a7d.tar.gz
[zsh] Add configuration for zsh
Basic configuration to start with zsh.

Closes #18.
Diffstat (limited to 'aliases')
-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"