citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 534ed77fe85004ef95e7a9c16a7d46390a7e4dbd
parent f1f83aaade30feabe3c7a68b0b2c96e44c7255bb
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  4 Jan 2021 10:51:05 -0800

general-status: no git for now

Diffstat:
Mbin/general-status | 38+++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/bin/general-status b/bin/general-status @@ -1,26 +1,26 @@ #!/usr/bin/env bash -export LESS="-R -S --quit-if-one-screen" +#export LESS="-R -S --quit-if-one-screen" -(printf "sys: %s@%s\npwd: %s\n" \ +printf "sys: %s@%s\npwd: %s\n" \ "$USER" \ "$HOSTNAME" \ "$PWD" -if git rev-parse --is-inside-work-tree >/dev/null 2>/dev/null; then - printf "\n" - conf="-c color.status=always -c color.branch=always" - eachreffmt='%(authordate:short) %(authorname) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))' - git $conf status -s - git $conf remote -v | grep \(fetch\) | column -t -s $'\t' "$@" - brconf="--sort=-committerdate" - COLUMNS=$(stty size | cut -d" " -f2) - - timeout 1 git lg --color=always --simplify-by-decoration || ( - printf "\n" - git for-each-ref --color=always --sort=-committerdate refs/heads/ --format="$eachreffmt" - printf "\n" - git for-each-ref --color=always --sort=-committerdate refs/remotes/ --format="$eachreffmt" - ) - -fi) | less -RSF +#if git rev-parse --is-inside-work-tree >/dev/null 2>/dev/null; then +# printf "\n" +# conf="-c color.status=always -c color.branch=always" +# eachreffmt='%(authordate:short) %(authorname) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))' +# git $conf status -s +# git $conf remote -v | grep \(fetch\) | column -t -s $'\t' "$@" +# brconf="--sort=-committerdate" +# COLUMNS=$(stty size | cut -d" " -f2) +# +# timeout 1 git lg --color=always --simplify-by-decoration || ( +# printf "\n" +# git for-each-ref --color=always --sort=-committerdate refs/heads/ --format="$eachreffmt" +# printf "\n" +# git for-each-ref --color=always --sort=-committerdate refs/remotes/ --format="$eachreffmt" +# ) +# +#fi) | less -RSF