| Action | Run Command | Example |
|---|---|---|
| Connect to local host on default port 27017 | mongo | mongo |
| Connect to remote host on specified port | mongo --host --port | mongo --host 192.168.65.23 --port 27020 |
| Connect to a database | mongo / | mongo 192.168.65.23/api |
| Show current database | db | db |
| Select or switch database | use | use api |
| Execute a JavaScript file | load() | load (program.js) |
This file contains hidden or 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
| ## GIT PROMPT DISPLAY | |
| ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚" | |
| ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} ✚" | |
| ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖" | |
| ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜" | |
| ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[red]%} ⇡" | |
| ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[014]%} ✭" | |
| PROMPT='$FG[008][%*]%{$reset_color%} $FG[004]%~%{$reset_color%} $FG[006]$(git_current_branch)%{$reset_color%}$(git_prompt_status) | |
| $FG[002]❯%{$reset_color%} ' |
This file contains hidden or 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
| license: mit |
This file contains hidden or 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
| license: mit |
This file contains hidden or 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
| license: mit |
This file contains hidden or 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
| license: mit |
This file contains hidden or 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
| license: mit |
This file contains hidden or 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
| license: mit |
This file contains hidden or 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
| license: mit |
This file contains hidden or 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
| license: mit |