From 18f5afe6634d52d38fd6651fe30dbcc3294cf927 Mon Sep 17 00:00:00 2001 From: Manuel Amago Date: Sun, 8 Sep 2019 06:10:12 +0100 Subject: Add notepad script and add ~/bin to path --- bin/np | 9 +++++++++ dot-profile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 bin/np diff --git a/bin/np b/bin/np new file mode 100644 index 0000000..e53c83d --- /dev/null +++ b/bin/np @@ -0,0 +1,9 @@ +!#/usr/bin/bash + +if [ $# -eq 0 ]; then + echo "Please specify a file to open." +else + args="$(cygpath -w $@)" + /path/to/notepad++.exe $args +fi + diff --git a/dot-profile b/dot-profile index c158ae9..ec030cb 100644 --- a/dot-profile +++ b/dot-profile @@ -1,6 +1,6 @@ # MacPorts Installer addition on 2010-01-16_at_22:19:33: adding an appropriate PATH variable for use with MacPorts. -export PATH=/opt/local/bin:/opt/local/sbin:$PATH +export PATH=~/bin:/opt/local/bin:/opt/local/sbin:$PATH # Finished adapting your PATH environment variable for use with MacPorts. . ~/bin/navigation.sh -- cgit v1.2.1