summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-07-22 14:36:50 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-07-22 14:36:50 +0200
commit0d71921548ac559f870b9d6ce6a80d1c0c13b0af (patch)
treeefc7fb0fb841efc82de4d740989bf05341c46d36
parent4844add96faef1e3b8f8b16eaf083979febb4450 (diff)
Moved hgd and gitd to functions so there's always highlighting
-rw-r--r--etc/alias/short4
-rw-r--r--etc/functions/gitd1
-rw-r--r--etc/functions/hgd1
3 files changed, 4 insertions, 2 deletions
diff --git a/etc/alias/short b/etc/alias/short
index 59c763d..daf75d8 100644
--- a/etc/alias/short
+++ b/etc/alias/short
@@ -87,7 +87,7 @@ alias feht='feh -Tthumbnail' # List thumbnails
## Git
alias gita='git add'
alias gitc='git commit -m'
-alias gitd='git diff'
+# gitd is a function, see there
alias gitf='git pull'
alias gitl='git log'
alias gitp='git push'
@@ -98,7 +98,7 @@ alias git-serve='git-daemon --export-all --base-path=. .'
alias hga='hg add'
alias hgar='hg addremove'
alias hgc='hg commit -m'
-alias hgd='hg diff | highlight diff | less'
+# hgd is a function, see there
alias hgf='hg fetch'
alias hgg='hg glog | less'
alias hgh='hg heads'
diff --git a/etc/functions/gitd b/etc/functions/gitd
new file mode 100644
index 0000000..80b7d34
--- /dev/null
+++ b/etc/functions/gitd
@@ -0,0 +1 @@
+git-diff $* | highlight diff | less
diff --git a/etc/functions/hgd b/etc/functions/hgd
new file mode 100644
index 0000000..6200d8b
--- /dev/null
+++ b/etc/functions/hgd
@@ -0,0 +1 @@
+hg diff $* | highlight diff | less