Skip to content

Bash automation script to get iTerm2, oh-my-zsh, Fig, material-design-colors, powerlevel9k and nerd-fonts on your Mac.

License

Notifications You must be signed in to change notification settings

jsmette/Cosmic-Terminal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cosmic-Terminal

This script will install iTerm2, oh-my-zsh, Fig and it will download material-design-colors, powerlevel10k and DroidSansMono Nerd Font from nerd-fonts

Prerequisite

Iterm2 works on Macs with macOS 10.12 or newer.

Install

1. Make install_cosmic_terminal.sh executable

chmod +x install_cosmic_terminal.sh

Run

./install_cosmic_terminal.sh

or (thanks to Aidan)

curl -s https://raw.githubusercontent.com/lifeparticle/Cosmic-Terminal/master/install_cosmic_terminal.sh | sh

2. Set the theme in ~/.zshrc

vim ~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"

3. Set the Font

3.1. iTerm2 > Preferences > Profiles > Text Tab

3.2. Click Change font

3.3. Select DroidSansMono Nerd Font

For more fonts https://github.com/ryanoasis/nerd-fonts

4. Set the color

4.1 iTerm2 > Preferences > Profiles > Colors Tab

4.2 Click Color Presets...

4.3 Click Import...

4.4 Choose material-design-colors.itermcolors file from Downloads folder

4.5 Select the material-design-colors from the dropdown

5. Set Aliases in ~/.zshrc

function gitall() {
    git add .
    if [ "$1" != "" ]
    then
        git commit -m "$1"
    else
        git commit -m update # default commit message is `update`
    fi # closing statement of if-else block
    git push origin HEAD
}

Source

gitdeleteall() {
    if [ "$1" != "" ]
    then
        git branch -D "$1"
        git push origin --delete "$1"
    else
        echo "provide branch name"
    fi
}
alias gcm="git checkout main";
alias gs="git status";
alias gp="git pull";
alias gf="git fetch";

6. Status bar

  • 6.1. iTerm2 > Preferences > Profiles > Session tab -> Status bar enabled [check]

    • 6.1.1 Configure status bar

    • 6.1.2 Advanced - Background color -> Use the color picker and choose the backgroung color of the terminal

  • 6.2. iTerm2 > Preferences > Appearance > Status bar locatio [Bottom]

7. Add Plugins in ~/.zshrc

plugins=(
    git
    zsh-autosuggestions
)

Fig

  1. Settings ~/.fig/settings.json
{
	"autocomplete.disable": false,
	"autocomplete.theme": "dark",
	"autocomplete.firstTokenCompletion": true
}

Uninstall

  1. run
./uninstall_cosmic_terminal.sh

or

curl -s https://raw.githubusercontent.com/lifeparticle/Cosmic-Terminal/master/uninstall_cosmic_treminal.sh | sh

Troubleshooting

Tested OS

  • macOS Big Sur (Version 11.3)

List all available shells in macOS X:

cat /etc/shells

To see which shell you’re running:

echo $0

To change to bash shell:

chsh -s /bin/bash

To change to zsh shell:

chsh -s /bin/zsh
# if you're using bash
$ echo 'export PATH="/usr/local/a/b/c:$PATH"' >> ~/.bashrc
$ source ~/.bashrc

# or if you're using zsh
$ echo 'export PATH="/usr/local/a/b/c:$PATH"' >> ~/.zshrc
$ source ~/.zshrc

Bug Reports and Feature Requests

Please create an issue with as much information you can. Thank you.

Author

Mahbub Zaman (https://mahbub.ninja)

License

MIT License

About

Bash automation script to get iTerm2, oh-my-zsh, Fig, material-design-colors, powerlevel9k and nerd-fonts on your Mac.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%