From 220d0dc4025e845b2060c2f508c70b90481a3796 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 8 Oct 2019 19:30:37 -0700 Subject: [PATCH] Set default columns to what the startup commands were doing by default, so that's no longer needed in the startup commands. --- bb.c | 2 +- bbstartup.sh | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bb.c b/bb.c index 1b539b1..9c21fce 100644 --- a/bb.c +++ b/bb.c @@ -1357,7 +1357,7 @@ int main(int argc, char *argv[]) setenv("BBINITIALPATH", path, 1); bb_t *bb = memcheck(calloc(1, sizeof(bb_t))); - bb->columns[0] = COL_NAME; + strcpy(bb->columns, "*smpn"); strcpy(bb->sort, "+n"); cd_to(bb, path); run_script(bb, runstartup); diff --git a/bbstartup.sh b/bbstartup.sh index 059bc09..cb36d38 100755 --- a/bbstartup.sh +++ b/bbstartup.sh @@ -16,10 +16,6 @@ mark root / mark config "$XDG_CONFIG_HOME" mark marks "$XDG_CONFIG_HOME/bb/marks" -# Set viewing options -bb +sort:+n -bb +col:'*smpn' - # Load key bindings # first check ~/.config/bb/bindings.bb, then /etc/xdg/bb/bindings.bb, then ./bindings.bb if [ -e "$XDG_CONFIG_HOME/bb/bindings.bb" ]; then