Author: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-10 18:26:37 +0000 +0000
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-10 18:26:37 +0000 +0000
Commit: a3d16cf64b19c151d6bfa85467385326bcc3a912
Parent: 2732b7b1e64c0979964111f230463cda1fe49f27
rc: Remove unused aliases and functions
diff --git a/.rc b/.rc
index 2bd0b7bc89e3305218104ea4d326b7648286a213..881e3ba9340861f7d489bb23964b9f0144a8c25c 100644
--- a/.rc
+++ b/.rc
@@ -2,20 +2,6 @@ # vim: set syntax=sh ts=2 sw=2 et:
export EDITOR=vim
-pycd () {
- # cd into a python module directory
- # django.contrib.admin > $PYTHONPATH/django/contrib/admin
- cd $(python -c "import $1; print $1.__file__" | xargs dirname)
-}
-
-json () {
- if [ -p /dev/stdin ]; then
- python -mjson.tool | pygmentize -l javascript
- else
- python -mjson.tool <<< "$*" | pygmentize -l javascript
- fi
-}
-
openx () {
# http://orta.github.io/rebase/on/opening-xcode-projects-and-workspaces/
@@ -30,29 +16,12 @@ fi
fi
}
-alias v=$EDITOR
-alias gdiff='git diff | $EDITOR -R -'
-
-ssha() {
- ssh $1 -t tmux attach
-}
-
-ssht() {
- ssh $1 -t tmux
-}
-
alias snip="curl -F 'paste=<-' http://s.drk.sc"
-alias gsnip='git diff | snip'
-
alias mac="openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'"
alias serve="python -m SimpleHTTPServer"
# git
-apply() {
- curl $1 | git apply
-}
-
version() {
COMMITS=$(git rev-list HEAD | wc -l)
echo "$(git describe --tags --always --dirty) ($((COMMITS)))"
@@ -63,7 +32,6 @@ git shortlog --no-merges $1..HEAD | pbcopy
changes=$(git rev-list $1..HEAD | wc -l)
echo "Release notes for $(version) are in your clipboard, $((changes)) changes"
}
-
# Source a local .profile if it exists
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile"