configs  Diff

Differences From Artifact [7b40a0d9fc]:

To Artifact [f86bac4a30]:


226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
	esac
}

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

if ! __has_command colordiff; then
	colordiff() {
		red="$(tput setaf 1)"
		green="$(tput setaf 2)"
		reset="$(tput sgr0)"
		sed "s/^+.*$/$green&$reset/" | sed "s/^-.*$/$red&$reset/"
	}
fi

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







|
|
|







226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
	esac
}

__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"