configs  Check-in [feaffda420]

Overview
Comment:Rename fsl alias to fl (and fsld to fld)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: feaffda4206cb85dc69e5fb6daf48db7a4619cf3f82554503f3ae6926ce3f805
User & Date: js 2020-05-24 13:50:21
Original Comment: Rename fls alias to fl (and flsd to fld)
Context
2020-05-24
17:30
Add flc as alias for "fossil changes --differ" check-in: 4ca56c47e1 user: js tags: trunk
13:50
Rename fsl alias to fl (and fsld to fld) check-in: feaffda420 user: js tags: trunk
13:30
zshrc: Make colordiff fallback work on MSYS2 check-in: 57c7dd0298 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to fish/config.fish.

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
set -g fish_color_status --bold red
set -g fish_color_suffix 29bc7d
set -g fish_color_user 00ff00
set -g fish_color_valid_path normal
set -g fish_color_vcs 43d696
set -g fish_color_vcs_braces 29bc7d

set -g _fish_abbr_fsl fossil
set -g _fish_abbr_gpg gpg2
set -g _fish_abbr_vi vim

test -n "$XDG_CONFIG_HOME"
or set -x XDG_CONFIG_HOME $HOME/.config
test -n "$XDG_CACHE_HOME"
or set -x XDG_CACHE_HOME $HOME/.cache







|







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
set -g fish_color_status --bold red
set -g fish_color_suffix 29bc7d
set -g fish_color_user 00ff00
set -g fish_color_valid_path normal
set -g fish_color_vcs 43d696
set -g fish_color_vcs_braces 29bc7d

set -g _fish_abbr_fl fossil
set -g _fish_abbr_gpg gpg2
set -g _fish_abbr_vi vim

test -n "$XDG_CONFIG_HOME"
or set -x XDG_CONFIG_HOME $HOME/.config
test -n "$XDG_CACHE_HOME"
or set -x XDG_CACHE_HOME $HOME/.cache

Name change from fish/functions/fsld.fish to fish/functions/fld.fish.

1
2
3
function fsld
    fossil diff $argv -N | colordiff | less -FRX
end
|


1
2
3
function fld
    fossil diff $argv -N | colordiff | less -FRX
end

Changes to zshrc.

200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
			;;
	esac
}

alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"

if which fossil &>/dev/null; then
	alias fsl="fossil"

	fsld() {
		if which colordiff &>/dev/null; then
			fossil diff -N "$@" | colordiff | less -FRX
		else
			red="$(tput setaf 1)"
			green="$(tput setaf 2)"
			reset="$(tput sgr0)"
			fossil diff -N "$@" | sed "s/^+.*$/$green&$reset/" |







|

|







200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
			;;
	esac
}

alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"

if which fossil &>/dev/null; then
	alias fl="fossil"

	fld() {
		if which colordiff &>/dev/null; then
			fossil diff -N "$@" | colordiff | less -FRX
		else
			red="$(tput setaf 1)"
			green="$(tput setaf 2)"
			reset="$(tput sgr0)"
			fossil diff -N "$@" | sed "s/^+.*$/$green&$reset/" |