~yerinalexey/dotfiles

ref: 8579758ddf3d8383f2ea9cad38fab11934bc456e dotfiles/zsh/functions.zsh -rw-r--r-- 313 bytes
8579758dAlexey Yerin scripts/xdg-open: fix terminal command for foot 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
}