Update 2023-03-00_windows.bashrc

This commit is contained in:
siriusfox 2023-10-07 15:38:35 -07:00
parent c6fb52b54b
commit 56a38c8e51

18
2023-03-00_windows.bashrc Normal file
View file

@ -0,0 +1,18 @@
#!/bin/bash
# When notepad++ is available, use it
function npp() {
export IFS=$'\n'
NOTEPADPP_EXE='/c/Program Files/Notepad++/notepad++.exe'
if [[ -e "${NOTEPADPP_EXE}" ]]; then
echo 'notepad++.exe '$*' &'
"${NOTEPADPP_EXE}" $* &
return 0
else
echo "notepad++ not found."
return 1
fi
}
alias _wrapping_fix='kill -WINCH $$'