~jagtalon/dotfiles

8afb790e2f8f3f42d23dd0d77686e50a6847bf57 — Jag Talon 8 months ago 8240802
Adjust for OpenBSD compatibility.
4 files changed, 17 insertions(+), 3 deletions(-)

M .config/fish/config.fish
A .config/fish/functions/tar.fish
A .config/fish/functions/xclip.fish
D .local/bin/xclip
M .config/fish/config.fish => .config/fish/config.fish +1 -1
@@ 12,4 12,4 @@ if uname -a | grep 'WSL'
end

# Set the path to Go binaries.
set PATH $PATH $HOME/go/bin
set PATH $PATH $HOME/go/bin
\ No newline at end of file

A .config/fish/functions/tar.fish => .config/fish/functions/tar.fish +9 -0
@@ 0,0 1,9 @@
# Use gtar on OpenBSD instead of the built-in tar.

function tar
	if uname -a | grep 'OpenBSD' >/dev/null
		command gtar $argv
	else
		command tar $argv
	end
end
\ No newline at end of file

A .config/fish/functions/xclip.fish => .config/fish/functions/xclip.fish +7 -0
@@ 0,0 1,7 @@
# Map xclip to clip.exe on Windows.

if uname -a | grep 'WSL'>/dev/null
	function xclip
		command clip.exe <&0
	end
end
\ No newline at end of file

D .local/bin/xclip => .local/bin/xclip +0 -2
@@ 1,2 0,0 @@
#!/usr/bin/fish
clip.exe <&0