mirror of
https://github.com/opensiriusfox/bashrc.d.git
synced 2025-06-17 04:40:32 -07:00
Merge branch 'master' into kusanagi
This commit is contained in:
commit
9a37b1f6f2
1 changed files with 18 additions and 0 deletions
18
bashrc.windows.sh
Normal file
18
bashrc.windows.sh
Normal 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 $$'
|
Loading…
Add table
Add a link
Reference in a new issue