내가 시도한 것은 다음과 같습니다.
$ alias n++='(cd `dirname $1`; "/cygdrive/c/Program Files (x86)/Notepad++/notepad++.exe" `basename $1`)'
alias n++='(cd `dirname $1`; "/cygdrive/c/Program Files (x86)/Notepad++/notepad++.exe" `basename $1`)'
history -a;
$ n++ /etc/httpd/conf/httpd.conf
n++ /etc/httpd/conf/httpd.conf
-bash: syntax error near unexpected token `/etc/httpd/conf/httpd.conf'
history -a;
답변1
notepadplusplus() {
cd `dirname $1`
"/cygdrive/c/Program Files (x86)/Notepad++/notepad++.exe" `basename $1`
cd -
}
alias n++=notepadplusplus