~yerinalexey/dotfiles

ref: 8577e9749fa7fe80273e2b41122b441e994500e3 dotfiles/zsh/functions.zsh -rw-r--r-- 313 bytes
8577e974Alexey Yerin qb: remove unused styles 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Random useful functions

# Open Zig documentation
function zd() {
	[ ! -f "$XDG_DATA_HOME/zig.html" ] && \
		curl -sS "https://ziglang.org/documentation/0.7.1" -o "$XDG_DATA_HOME/zig.html"

	"$BROWSER" "$XDG_DATA_HOME/zig.html" 2>/dev/null >/dev/null
}

# Open Zig stdlib
function zs() {
	cd /usr/lib/zig/std
}