How to edit your.bashprofile. For the newly initiated, here’s how you can edit the.bashprofile on your Mac. Step 1: Fire up Terminal.app. Step 2: Type nano.bashprofile – This command will open the.bashprofile document (or create it if it doesn’t already exist) in the easiest to use text editor in Terminal – Nano. Keep the file handy which you wish to open, along with the app in which you wish to open. Keep Command+Option pressed while dragging the file into the app. Your file should be open by now. As said earlier, this trick works almost all the time.
How to add an app to dock on mac. Open the Terminal (Mac OS X, Linux) or Git-Bash terminal (Windows)in the given directory via context menu or keyboard shortcut. How to change the default finder app mac.
Keyboard shortcuts
Open the Terminal in the current directory
Platform | Keyboard shortcut |
---|---|
Mac OS X | ctrl-cmd-t |
Windows | ctrl-alt-t |
Linux | ctrl-alt-t |
Open the Terminal in the project directory
Platform | Keyboard shortcut |
---|---|
Mac OS X | alt-cmd-t |
Windows | ctrl-alt-shift-t |
Linux | ctrl-alt-shift-t |
FAQ
How to open a new tab instead of a new window?
Mac OS X
- Open Automator and select
Application
as new document. - From the Library, add
Run Applescript
as Automator action. - Replace the sample AppleScript code with the code fromterminal-tab.scpt.
- Save the Automator app as
TerminalTab.app
to your Applications folder. - In the
open-terminal-here
settings, setCommand
toopen -a TerminalTab.app '$PWD'
.
Ubuntu Linux
Bash Script Open Application Mac
- Install xdotool:
sudo apt-get install -y xdotool
- Download terminal-tab.sh and make it executable:
chmod +x ./terminal-tab.sh
- Move the script to a directory in your path:
sudo mv ./terminal-tab.sh /usr/local/bin/terminal-tab
- In the
open-terminal-here
settings, setCommand
toterminal-tab
.