• Stars
    star
    219
  • Rank 181,133 (Top 4 %)
  • Language
    Shell
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is my profile for UNIX (MacOS/Linux) terminals.

Pixegami Terminal Profile

terminal

This is my profile for UNIX (MacOS/Linux) terminals. For Ubuntu, I just use the default terminal app. For MacOS, I use iTerm2.

In the MacOS case, I have successfully installed this theme once before, but most of the terminal commands will be different. You'll just have to open the .sh files and figure out how to adapt it to MacOS until I can prepare MacOS commands.

These commands were last tested on May 2022 on Ubuntu 20.

Prerequisites

For the scripts to work, I think these are the bare minimum requirements.

# Update your software repositories.
sudo apt-get update
sudo apt-get upgrade

# Install Git.
sudo apt-get install -y git

# Install Vim.
sudo apt-get install -y vim

Installation

Powerline (and fonts)

First, we'll install the font (RobotoMono for Powerline). I'll also install it into VIM, since that is my built-in editor of choice (but you don't have to use it).

The Powerline fonts also include special characters (like Git branches) that we will use later in the terminal profile theme.

./install_powerline.sh

ZSH, OhMyZSH and Plugins

The shell that I use is "ZSH", with the OhMyZSH upgrade on top of that. To install all of that stuff, you can run the helper script (and may need to restart after).

./install_terminal.sh

After this, the terminal should look a bit different, but we need to do the next step to have the entire theme.

Profile (plugins, theme, font and color)

This script will first install two plugins that I like to use: auto-complete and color highlighting.

# You don't need to execute this - it's part of the script already.
(cd ~/.oh-my-zsh/custom/plugins && git clone https://github.com/zsh-users/zsh-syntax-highlighting)
(cd ~/.oh-my-zsh/custom/plugins && git clone https://github.com/zsh-users/zsh-autosuggestions)

It will also copy over the .zshrc and pixegami-agnoster.zsh-theme files for the terminal to use (which will wire up the plugins and the theme).

The last command is to create a terminal profile that will set the colors and also set the font to be the Powerline one we installed earlier (required for the theme to display correctly).

./install_profile.sh

You can also change the font to any of the other Powerline Patched Fonts too if you don't like RobotoMono.

If it looks funky after this command, then you might need to wait until the theme is updated with a Powerline font (the next step), and may need to also restart your machine.

Notes

How to dump current terminal profiles.

dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf

How to display terminal information (I use Neofetch).

sudo apt-get install neofetch

# Display the profile
# I override the colors because the default red is kinda ugly in this theme.
neofetch --ascii_colors 6 7 --colors 2 2 2 2

How do I reset the changes back to the old terminal?

There's two main modifications being done to the terminal. The terminal theme, and the shell itself.

For the theme, here's a thread I found on the internet on how to reset it to the default: https://askubuntu.com/questions/14487/how-to-reset-the-terminal-properties-and-preferences

For the terminal shell itself, we actually installed a new terminal (zsh) alongside the default bash. Bash itself wasn't removed, but we just set the default shell to zsh. Here is a thread on how to uninstall zsh and default back to bash: https://askubuntu.com/questions/958120/remove-zsh-from-ubuntu-16-04

Sources

Here are some of the main resources I used as part of this terminal setup.

Oh My Zsh! | Robby Russel OMZ | Install Powerline | Powerline Patched Fonts | Agnoster Theme

More Repositories

1

pokemon-card-generator

A Python app that generates Pokemon cards, and uses GPT and Midjourney for flavor.
Python
99
star
2

nextjs-blog-tutorial

Tutorial Project for a NextJS 13 Static Blog with TailwindCSS Styling
TypeScript
60
star
3

python-generative-art-tutorial

Tutorial repository for Python generated art.
Python
56
star
4

copykitt-tutorial

This is a tutorial repository for how to build an OpenAI powered web app.
TypeScript
49
star
5

fastapi-tutorial

A simple FastAPI application.
Python
43
star
6

pixel-punk-avatars

A tutorial for generating Cryptopunk-like avatars in Python.
Python
37
star
7

python-for-beginners

A short Python course for complete beginners who want to learn to code in Python.
Python
26
star
8

simple-pytest-tutorial

Python
15
star
9

todo-list-api

A serverless to-do list API, using Python, FastAPI, AWS Lambda and AWS DynamoDB.
TypeScript
13
star
10

python-wordle

An implementation of Wordle in Python than can be played via the terminal.
Python
11
star
11

qr-code-webapp

A simple web-app that lets you post a message and generate a QR code that links to that message.
TypeScript
9
star
12

python-cli-template

A template for a Python CLI package that can be published to PyPI.
Python
7
star
13

nextjs-portfolio-tutorial

A static personal portfolio website, built with NextJS, React, TailwindCSS.
TypeScript
6
star
14

simple-web-scraper

A simple web scraper project (tutorial) in Python.
Python
5
star
15

stripe-firebase-app

A tutorial NextJS project using Firebase backend for authentication and Stripe for payments.
TypeScript
4
star
16

gpt-shell

A Python script/tutorial to interact with ChatGPT directly from the terminal.
Python
3
star
17

gpt-3-poetry-results

Here are some creative writings by GPT-3 (poetry and lyrics).
2
star
18

nextjs-firebase-auth

NextJS/Firebase project demonstrating token based authentication
TypeScript
2
star
19

aws-lambda-docker

A sample CDK application that creates an AWS Lambda function using a Docker image (with a Python application).
TypeScript
1
star
20

discord-bot-lambda

A Python Discord Bot that can be hosted on AWS Lambda (using Interaction Endpoints).
Python
1
star
21

tailwind-landing-page-demo

TypeScript
1
star
22

saas-starter

A SaaS starter infrastructure project.
TypeScript
1
star
23

jwt-echo

An API to echo the JWT content back to the caller.
Python
1
star
24

python-caesar-cipher

Learn Python by buliding a Caesar Cipher (project for beginners)
Python
1
star
25

script-stream

A Python program to turn scripts into image slides and video clips.
1
star
26

gatsby-blog

TypeScript
1
star
27

python-decorators

A simple project to show how to create and use decorators in Python.
Python
1
star
28

fastapi-aws-lambda

Python
1
star
29

wolfhunter

A PICO-8 game for the GitHub Game-Off 2020
Lua
1
star