configs  Check-in [8ed8fb5afa]

Overview
Comment:Fix spacing errors
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8ed8fb5afa712af1dfdd49be3b73096d394ca59a42d7556ab0925d80321c538c
User & Date: js on 2020-05-24 11:34:52
Other Links: manifest | tags
Context
2020-05-24
13:19
zshrc: Provide fallback when colordiff is missing check-in: ea72aa4093 user: js tags: trunk
11:34
Fix spacing errors check-in: 8ed8fb5afa user: js tags: trunk
00:24
Pass -N to fossil diff for fsld check-in: e18743ad0f user: js tags: trunk
Changes

Modified zshrc from [7a953e445f] to [9c0bab85e6].

96
97
98
99
100
101
102

103
104
105
106
107
108
109
110
111
112
113
114
96
97
98
99
100
101
102
103
104
105
106
107

108
109
110
111
112
113
114







+




-







fi
set_prompt

__precmd() {
	__update_terminal_cwd

	local branch=""

	local fossil_branch=$(fossil branch current 2>/dev/null)
	if [ -n "$fossil_branch" ]; then
		branch="$branch${branch:+ }f:$fossil_branch"
	fi

	
	local git_branch=$(git symbolic-ref HEAD 2>/dev/null)
	git_branch=${git_branch##refs/heads/}
	if [ -n "$git_branch" ]; then
		branch="$branch${branch:+ }g:$git_branch"
	fi