-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
This is for setting up the shortcut commands in Mac terminal | ||
For example, if I type ```cts``` in my terminal, it will directly link to the lab server | ||
How? | ||
1. I used oh-my-zsh from here https://ohmyz.sh/ but it would work for regular terminals too | ||
2a. If you use oh-my-zsh: You find ```~/.zshrc```. | ||
2b. If you just use default terminal, just open ```~/.bash_profile```. | ||
3. I installed Atom as my text editor so I can open it from my terminal ```atom ~/.zshrc``` to edit it. But any text editor tools would work. If you open it from your desktop, you may need to view invisible files to see it. | ||
4. Add under "alias" and save the file. For example ```alias cts = "ssh [email protected]"```. Next time, I entered ```cts``` in my terminal, it would directly execute the command. | ||
|
||
|
||
Other helpful shortcut can be found here: | ||
https://medium.com/the-lazy-developer/five-life-changing-git-aliases-e4211c090017 |