~jagtalon/dotfiles

787da005b1a3740de1ad65c3782ca6beb51326cb — Jag Talon 8 months ago ee5462e
Make `bat` and `fd` work on both OpenBSD and Ubuntu
3 files changed, 13 insertions(+), 4 deletions(-)

M .config/fish/functions/bat.fish
M .config/fish/functions/fd.fish
M .local/bin/xclip
M .config/fish/functions/bat.fish => .config/fish/functions/bat.fish +7 -1
@@ 1,3 1,9 @@
function bat
    command batcat $argv
	if command -v batcat > /dev/null
    	command batcat $argv
    else if command -v bat > /dev/null
    	command bat $argv
    else
    	command cat $argv
    end
end
\ No newline at end of file

M .config/fish/functions/fd.fish => .config/fish/functions/fd.fish +5 -1
@@ 1,3 1,7 @@
function fd
    command fdfind $argv
	if command -v fdfind > /dev/null
    	command fdfind $argv
    else
    	command fd $argv
    end
end
\ No newline at end of file

M .local/bin/xclip => .local/bin/xclip +1 -2
@@ 1,8 1,7 @@
#!/usr/bin/fish
#!/usr/local/bin/fish

if uname -a | grep 'WSL'>/dev/null
	clip.exe <&0
else
    command xclip $argv
	command xclip $argv
end