Use less -RXF for viewing output of some commands, + aliases

This commit is contained in:
David Morgan 2016-04-15 06:56:29 +01:00
parent 1caeaff967
commit ade306101b
1 changed files with 4 additions and 1 deletions

View File

@ -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()