mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-28 15:04:22 -04:00
163 current 2024-06-05 10:26:11 24.11.20240529.ad57eef 6.9.2-zen1 *
This commit is contained in:
parent
45ea4ccdfa
commit
be1f3f0b91
1 changed files with 5 additions and 5 deletions
|
@ -100,7 +100,7 @@ in
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
wslclip $@ && exit 0
|
wslclip $@ && exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
'')
|
'')
|
||||||
(pkgs.writeShellScriptBin "git_fetchAll" ''
|
(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 branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "''${remote#origin/}" "$remote"; done
|
||||||
|
@ -124,10 +124,10 @@ in
|
||||||
python3 -c "print($*)"
|
python3 -c "print($*)"
|
||||||
'')
|
'')
|
||||||
(pkgs.writeShellScriptBin "ocr" ''
|
(pkgs.writeShellScriptBin "ocr" ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
TEMP=$(mktemp)
|
TEMP=$(mktemp)
|
||||||
flameshot -s -r gui > $TEMP
|
flameshot gui -s -r > $TEMP
|
||||||
(tesseract $TEMP --oem 1 -l eng | copy )|| copy "OCR RETUNRED NON-ZERO"
|
(tesseract $TEMP - --oem 1 -l eng | copy )|| copy "OCR RETUNRED NON-ZERO"
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
wsl = with pkgs;[
|
wsl = with pkgs;[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue