configs  Check-in [00abb3e9d6]

Overview
Comment:zshrc: Use sed -e instead of sed | sed
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 00abb3e9d6740e1c37c888afd7bfb7e4fbc6aecfa21ea27f7cf51445285fc3af
User & Date: js on 2022-08-15 23:40:08
Other Links: manifest | tags
Context
2022-10-22
20:15
vim/syntax/objc.vim: Update to ObjFW changes check-in: 3b9986b114 user: js tags: trunk
2022-08-15
23:40
zshrc: Use sed -e instead of sed | sed check-in: 00abb3e9d6 user: js tags: trunk
2022-07-17
19:04
cross switch: Include $DEVKITPRO/tools/bin in PATH check-in: ba979a3e14 user: js tags: trunk
Changes

Modified zshrc from [0e35125457] to [104fb033ab].

241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
__has_command tmux && alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"

if ! __has_command colordiff; then
	colordiff() {
		local red=$(printf "\033[31m")
		local green=$(printf "\033[32m")
		local reset=$(printf "\033[0m")
		sed "s/^+.*$/$green&$reset/" | sed "s/^-.*$/$red&$reset/"
	}
fi

if __has_command fossil; then
	alias fl="fossil"
	alias flc="fossil changes --differ"








|







241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
__has_command tmux && alias tmux="tmux -f $XDG_CONFIG_HOME/tmux/tmux.conf"

if ! __has_command colordiff; then
	colordiff() {
		local red=$(printf "\033[31m")
		local green=$(printf "\033[32m")
		local reset=$(printf "\033[0m")
		sed -e "s/^+.*$/$green&$reset/" -e "s/^-.*$/$red&$reset/"
	}
fi

if __has_command fossil; then
	alias fl="fossil"
	alias flc="fossil changes --differ"