Skip to content

RalkeyOfficial/terminal-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Terminal setup

My current setup for the terminal on Windows. Along with a installation guide.


Table of contents:


Step 1: Installing the Right Apps

Terminal

To install Windows Terminal, open the Microsoft Store, search for "Windows Terminal", and install it.
Alternatively, you can use this link.

PowerShell

To install PowerShell, open the Microsoft Store, search for "PowerShell", and install it.
Alternatively, you can use this link.

WSL Debian (Optional)

Only recommended if you have Linux experience.
Open PowerShell as Administrator and run the following command:

wsl --install -d Debian

Follow the setup steps for Debian.

Starship

Windows (With Chocolatey)

Open CMD as Administrator and run:

choco install starship

Windows (Without Chocolatey)

Download and install the latest MSI installer from their GitHub releases.

Linux Debian (If WSL is Installed)

Open WSL and update the system:

sudo apt update && sudo apt upgrade

Then, install curl:

sudo apt install curl

Finally, install Starship:

curl -sS https://starship.rs/install.sh | sh

Step 2: Installing the Right Font

Visit nerdfonts.com and choose a font you like.
For example, I use CaskaydiaMono Nerd Font.

Step 3: Setting Up the Terminal

Installing settings.json

  1. Open Terminal and navigate to settings (Ctrl + ,).
  2. At the bottom-left, click on Open JSON file.
  3. Delete the existing content and replace it with the settings from settings.json.
  4. Save the file and reopen the Terminal.

Go back to settings, select Profiles, click "Default", and go to "Appearance".
Ensure the Color scheme is set to Sexy Mama and the Font is set to CaskaydiaMono Nerd Font.

Remove Logo from PowerShell

In the "PowerShell" profile, add -nologo at the end of the Command line.
Make sure to press Save.

Step 4: Setting Up Starship

Windows

Create Configuration Folder

Press Windows key + R, type %userprofile%, and press Enter.
Create a folder named .config in your user directory.
Download the starship.toml file to this folder.

PowerShell

Open the PowerShell profile in VSCode:

code $PROFILE

Add the following line at the end of the file:

Invoke-Expression (&starship init powershell)

Command Prompt

  1. Install Clink from GitHub.
  2. Open a clink\starship.lua file in VSCode:
code %LocalAppData%\clink\starship.lua

Add the following line at the end of the file:

load(io.popen('starship init cmd'):read("*a"))()

Save the file.

Debian

Modify .bashrc

Open .bashrc in NANO:

nano ~/.bashrc

Scroll to the end of the file and add:

eval "$(starship init bash)"

Save the file (Ctrl + S) and exit NANO (Ctrl + X).

Create Starship Configuration

Open a new file in NANO:

nano ~/.config/starship.toml

Paste the contents from starship.toml.
Save and close the file as before.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages