about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <david.morgan@dionglobal.com>2016-04-15 06:56:29 +0100
committerDavid Morgan <david.morgan@dionglobal.com>2016-04-15 06:56:29 +0100
commitade306101be402e39d4b69cf2088fdf63d95fd02 (patch)
tree6b299a957be15323ebc19c25f6b3be62d0b1618c
parent1caeaff967a7576c92434ee4f1524f3630de0e30 (diff)
downloaddotfiles-ade306101be402e39d4b69cf2088fdf63d95fd02.tar.gz
Use less -RXF for viewing output of some commands, + aliases
-rw-r--r--.bashrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 75246bb..83028f5 100644
--- a/.bashrc
+++ b/.bashrc
@@ -325,7 +325,7 @@ xspeak()
 
 function ag_less()
 {
-    ag  --color "${@}"|less -r
+    ag  --color "${@}"|less -RXF
 }
 
 function java_run()
@@ -365,6 +365,9 @@ alias hadd='run_cmd $(history -p ^diff^add)'
 alias dogs='run_cmd docker ps; run_cmd docker logs -f $(docker ps|sed 1d|awk '"'"'{print $1;}'"'"')'
 alias undock='sudo umount `mount|grep -o "/var/lib/docker/aufs/mnt/[a-z0-9]*"`'
 #alias gp="chdir ${VIEW_DIR} ; run_cmd git pull ; chdir"
+#alias gs="chdir ${VIEW_DIR} ; run_cmd git stash ; chdir"
+#alias gsp="chdir ${VIEW_DIR} ; run_cmd git stash pop ; chdir"
+#alias gstat="chdir ${VIEW_DIR} ; run_cmd git -c color.status=always status | less -RXF ; chdir"
 
 
 function esvapi()