Page 1 of 1

.bashrc function to open a UNIX path with Textpad 5

Posted: Sat Nov 13, 2010 12:19 am
by dtoader
This post applies to a cygwin environment or a bash on Windows setup.

Code: Select all

# Textpad function
# Pass in a UNIX path
# Starts textpad given a UNIX path argument
function textpad() { 
  local textpadUnixPath="/cygdrive/c/Program Files/TextPad 5/TextPad.exe"
  local textpadArgPath=`cygpath -w -a "$*"`
  "$textpadUnixPath" "$textpadArgPath" &
}