forked from Icycoide/linfm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sh
31 lines (31 loc) · 850 Bytes
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
__TIFM_PAGER="less" # [p]eek command
__TIFM_EDITOR="nano" # [e]dit command
__ANGLE_UP_RIGHT="╭"
__ANGLE_UP_LEFT="╮"
__ANGLE_DOWN_RIGHT="╰"
__ANGLE_DOWN_LEFT="╯"
__VBAR="│"
__TIFM_DECO_COLOUR="$CYAN"
__TIFM_CONFIRM_RETURN=true
__TIFM_DISPLAY() {
local stat=""
if [ "$STATUS" == "0" ]; then
stat="${GREEN}✔$NORMAL"
else
stat="${RED}✘ $STATUS$NORMAL"
fi
local string="$GREEN$BRIGHT$PWD$NORMAL $stat "
# for each extension, if it has a display function, call it
for ext_name in "${tifm_extensions[@]}"; do
if type "$ext_name".display &> /dev/null; then
string="$string$( "$ext_name".display )$NORMAL "
fi
done
echo "$string"
}
__TIFM_LS_COLOUR_FILE="$BLUE"
__TIFM_LS_COLOUR_DIRECTORY="$LIME_YELLOW"
__TIFM_PROMPT() {
user=$(whoami)
echo "$CYAN$user>"
}