Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 5045c4a

Browse files
committed
Merge branch 'master' of github.com:dylanaraps/fff into master
2 parents 542be9f + e76433f commit 5045c4a

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ Ctrl+C: exit without 'cd'.
174174
## Customization
175175

176176
```sh
177+
# Show/Hide hidden files on open.
178+
# (Off by default)
179+
export FFF_HIDDEN=1
180+
177181
# Use LS_COLORS to color fff.
178182
# (On by default if available)
179183
# (Ignores FFF_COL1)
180184
export FFF_LS_COLORS=1
181185

182-
# Show/Hide hidden files on open.
183-
# (On by default)
184-
export FFF_HIDDEN=0
185-
186186
# Directory color [0-9]
187187
export FFF_COL1=2
188188

@@ -204,9 +204,12 @@ export EDITOR="vim"
204204
# File Opener
205205
export FFF_OPENER="xdg-open"
206206

207+
# File Attributes Command
208+
export FFF_STAT_CMD="stat"
209+
207210
# Enable or disable CD on exit.
208-
# Default: '1'
209-
export FFF_CD_ON_EXIT=1
211+
# (On by default)
212+
export FFF_CD_ON_EXIT=0
210213

211214
# CD on exit helper file
212215
# Default: '${XDG_CACHE_HOME}/fff/fff.d'
@@ -215,7 +218,7 @@ export FFF_CD_FILE=~/.fff_d
215218

216219
# Trash Directory
217220
# Default: '${XDG_DATA_HOME}/fff/trash'
218-
# If not using XDG, '${XDG_DATA_HOME}/fff/trash' is used.
221+
# If not using XDG, '${HOME}/.local/share/fff/trash' is used.
219222
export FFF_TRASH=~/.local/share/fff/trash
220223

221224
# Trash Command

fff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ key() {
984984
[[ -e "${list[scroll]}" ]] && {
985985
clear_screen
986986
status_line "${list[scroll]}"
987-
stat "${list[scroll]}"
987+
"${FFF_STAT_CMD:-stat}" "${list[scroll]}"
988988
read -ern 1
989989
redraw
990990
}

fff.1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ export EDITOR="vim"
102102
# File Opener
103103
export FFF_OPENER="xdg\-open"
104104

105+
# File Attributes Command
106+
export FFF_STAT_CMD="stat"
107+
105108
# Enable or disable CD on exit.
106109
# Default: '1'
107110
export FFF_CD_ON_EXIT=1

0 commit comments

Comments
 (0)