aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-10-08 19:30:37 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-10-08 19:30:37 -0700
commit220d0dc4025e845b2060c2f508c70b90481a3796 (patch)
treeeed37b1a34f7c0dc9619d9a74a339e1ab8c219a9
parentc4620ece6015ada9ae7e70cadf3bc0bb0fe5b6d3 (diff)
Set default columns to what the startup commands were doing by default,
so that's no longer needed in the startup commands.
-rw-r--r--bb.c2
-rwxr-xr-xbbstartup.sh4
2 files changed, 1 insertions, 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