Differences From Artifact [4cbda25673]:
- File
zshrc
— part of check-in
[aed8907a52]
at
2020-05-24 20:51:51
on branch trunk
— Add Fossil branch to fish prompt
Also prefer Git over Fossil branch instead of showing both in zsh. (user: js, size: 5659) [annotate] [blame] [check-ins using]
To Artifact [fe781ffd61]:
- File zshrc — part of check-in [34edc39a9a] at 2020-05-26 20:05:20 on branch trunk — zshrc: Check if --color is supported by ls & grep (user: js, size: 5756) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
45 46 47 48 49 50 51 | which "$1" &>/dev/null && echo "$1" || echo "$2" } if [ -n "$grep" -o -n "$grep_color" ]; then : ${grep:=$(__find_command ggrep grep)} [ -n "$grep_color" -a "$grep_color[1]" != - ] && grep_color="--color=$grep_color" | > | > > | > | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | which "$1" &>/dev/null && echo "$1" || echo "$2" } if [ -n "$grep" -o -n "$grep_color" ]; then : ${grep:=$(__find_command ggrep grep)} [ -n "$grep_color" -a "$grep_color[1]" != - ] && grep_color="--color=$grep_color" if echo x | $grep $grep_color x &>/dev/null; then alias grep="$grep $grep_color" fi fi alias fgrep="grep -F" if [ -n "$ls" -o -n "$ls_color" ]; then : ${ls:=$(__find_command gls ls)} [ -n "$ls_color" -a "$ls_color[1]" != - ] && ls_color="--color=$ls_color" if $ls $ls_color &>/dev/null; then alias ls="$ls $ls_color" fi fi [ "$ls_on_cd" = yes ] && chpwd() { ls } [ "$ls_on_init" = yes ] && ls case $TERM_PROGRAM in Apple_Terminal) __update_terminal_cwd() { |
︙ | ︙ |