Toggle navigation
All Forums
Recent Posts
Sign In
how to alias a program like bbedit in .bashrc?
vxmqzz
Posted:
October 27, 2007 1:32PM
in
macOS
edited January 2014
how can i alias bbedit in .bashrc ?
i type
alias edit='/applications/bbedit'
save it and source .bashrc,
but when I type edit in x11 or terminal
it says no such file or directory
what's problem here ?
Thanks
Comments
Reply 1 of 2
Marvin
Posts:
15,435
moderator
October 27, 2007 1:51PM
You can either use the path directly to the binary:
alias bb='/Applications/bbedit.app/Contents/MacOS/bbedit'
or
alias bb='open -a bbedit'
You have to open a new shell for it to take effect.
bbedit has command line tools too, if you install them you can open files using the command bbedit something.txt.
Reply 2 of 2
vxmqzz
Posts:
2
member
October 27, 2007 1:56PM
Thanks, you made my day!
Quote:
Originally Posted by
Marvin
You can either use the path directly to the binary:
alias bb='/Applications/bbedit.app/Contents/MacOS/bbedit'
or
alias bb='open -a bbedit'
You have to open a new shell for it to take effect.
bbedit has command line tools too, if you install them you can open files using the command bbedit something.txt.
Sign In
or
Register
to comment.
Comments
alias bb='/Applications/bbedit.app/Contents/MacOS/bbedit'
or
alias bb='open -a bbedit'
You have to open a new shell for it to take effect.
bbedit has command line tools too, if you install them you can open files using the command bbedit something.txt.
You can either use the path directly to the binary:
alias bb='/Applications/bbedit.app/Contents/MacOS/bbedit'
or
alias bb='open -a bbedit'
You have to open a new shell for it to take effect.
bbedit has command line tools too, if you install them you can open files using the command bbedit something.txt.