8 current 2024-05-27 22:05:36 24.11.20240524.bfb7a88 Unknown *

This commit is contained in:
sadan 2024-05-27 22:05:38 -04:00
parent daabff6fef
commit a04bcb55aa
No known key found for this signature in database
2 changed files with 24 additions and 3 deletions

View file

@ -77,6 +77,27 @@ in
lutris
];
scripts = [
(pkgs.writeShellScriptBin "paste" ''
command -v xsel > /dev/null
if [[ $? -eq 0 ]]; then
xsel -ob && return
fi
command -v wslclip > /dev/null
if [[ $? -eq 0 ]]; then
wslclip -g && return
fi
'')
(pkgs.writeShellScriptBin "copy" ''
command -v xsel > /dev/null
if [[ $? -ne 0 ]]; then
xsel -ib $@ && return
fi
command -v wslclip > /dev/null
if [[ $? -ne 0 ]]; then
wslclip $@ && return
fi
'')
(pkgs.writeShellScriptBin "git_fetchAll" ''
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "''${remote#origin/}" "$remote"; done
git fetch --all
@ -100,6 +121,6 @@ in
'')
];
wsl = with pkgs;[
wslu
wslu
];
}

View file

@ -23,8 +23,8 @@
"$HOME/.local/bin"
];
aliases = {
paste = "xsel -ob || wslclip -g";
copy = "xsel -ib || wslclip";
# paste = "xsel -ob || wslclip -g";
# copy = "xsel -ib || wslclip";
b = "/home/${config.home.username}/nixos/build";
};
};