Compare commits
3 Commits
79351eb90b
...
44ae82b5d6
Author | SHA1 | Date | |
---|---|---|---|
44ae82b5d6 | |||
5d1f53e6b1 | |||
8628448d5d |
@ -44,7 +44,7 @@ prompt_fresh_setup() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local userhost=$USER
|
local userhost=$USER
|
||||||
if [ "$SSH_CONNECTION" != "" ]; then
|
if [ "$SSH_CONNECTION" != "" ] || [ "$DISTROBOX_ENTER_PATH" != "" ]; then
|
||||||
local user="$user@%{%F{244}%}%M%{%f%}"
|
local user="$user@%{%F{244}%}%M%{%f%}"
|
||||||
local userhost="$userhost@`hostname`"
|
local userhost="$userhost@`hostname`"
|
||||||
fi
|
fi
|
||||||
|
@ -69,8 +69,11 @@ if which bat &> /dev/null; then
|
|||||||
# Both --theme and --color can be specified multiple times and will override
|
# Both --theme and --color can be specified multiple times and will override
|
||||||
# these defaults.
|
# these defaults.
|
||||||
bat() {
|
bat() {
|
||||||
command bat --theme='TwoDark' --color always \
|
command bat --theme='TwoDark' --color always --paging auto "$@"
|
||||||
--paging always --pager 'less -R' "$@"
|
}
|
||||||
|
elif which batcat &> /dev/null; then
|
||||||
|
bat() {
|
||||||
|
command batcat --theme='TwoDark' --color always --paging auto "$@"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user