Skip to content

Commit 275ed5f

Browse files
author
Bruno Sutic
committed
Improve less and tree commands
1 parent 7ed61a1 commit 275ed5f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### master
44
- bugfix: invalid params for 'save_sidebar_width' script
55
- remove tilde characters from less
6+
- improve less and tree commands
67

78
### v0.6.0, Sep 05, 2014
89
- more options for customizing tree sidebar

scripts/tree_helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ command_exists() {
88

99
tree_command() {
1010
if command_exists "tree"; then
11-
echo "tree"
11+
echo "tree -C"
1212
else
1313
echo "$custom_tree_command"
1414
fi

scripts/variables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TREE_OPTION="@sidebar-tree"
99
TREE_FOCUS_KEY="Bspace"
1010
TREE_FOCUS_OPTION="@sidebar-tree-focus"
1111

12-
TREE_PAGER="less -S --tilde"
12+
TREE_PAGER="LESS='' less --dumb --chop-long-lines --tilde --IGNORE-CASE --RAW-CONTROL-CHARS"
1313
TREE_PAGER_OPTION="@sidebar-tree-pager"
1414

1515
TREE_POSITION="left"

0 commit comments

Comments
 (0)