mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 23:04:39 -05:00
8 current 2024-05-27 22:05:36 24.11.20240524.bfb7a88 Unknown *
This commit is contained in:
parent
daabff6fef
commit
a04bcb55aa
2 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue