1
0
Fork 0
mirror of https://github.com/PixNyb/profiles.git synced 2026-06-22 13:30:36 +02:00
Terminal profiles/config files to be put in the home directory
  • Shell 50.6%
  • PowerShell 49.4%
Find a file
2025-02-02 18:53:26 +01:00
.bash_profile Made the separator colors bright black, fixed .sh load file 2025-01-14 10:33:18 +01:00
.gitignore Added better ps1 support 2025-01-12 10:59:52 +01:00
.profile Made the separator colors bright black, fixed .sh load file 2025-01-14 10:33:18 +01:00
.zprofile Made the separator colors bright black, fixed .sh load file 2025-01-14 10:33:18 +01:00
config.fish Made the separator colors bright black, fixed .sh load file 2025-01-14 10:33:18 +01:00
install.ps1 Pls work 2025-01-12 11:12:16 +01:00
install.sh Updated install scripts to pls work 2025-01-12 11:08:02 +01:00
load.ps1 Oops in install script 2025-01-12 11:05:45 +01:00
load.sh Made the separator colors bright black, fixed .sh load file 2025-01-14 10:33:18 +01:00
Microsoft.PowerShell_profile.ps1 Made the separator colors bright black, fixed .sh load file 2025-01-14 10:33:18 +01:00
README.md Update README.md 2025-02-02 18:53:26 +01:00

Shell Profiles

This repository contains shell profiles for a variety of shells. They are simple and uniform, and can be used as a starting point for your own shell profile. All of these shell profiles have support for non-color terminals, and will not break if the terminal does not support color codes. They also assign a random color to the prompt of each new device, subsequent logins will have the same color as the first login. In my experience, this helps to quickly identify which terminal is which when working with multiple terminals.

Installation

To install a shell profile, you can either use the install scripts (install.sh or install.ps1) or copy the contents of the shell profile to your shell profile file manually. The install script will look at the shells available on your system and install the profile for each shell.

Note

The install scripts will create backups of your existing shell profile files before overwriting them, these are stored in the same directory as the original file with the extension .bak.

Unix

To install the bash shell profile, run the following command:

curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/pixnyb/profiles/main/install.sh)"

wget

sh -c "$(wget -qO- https://raw.githubusercontent.com/pixnyb/profiles/main/install.sh)"

fetch

sh -c "$(fetch -o - https://raw.githubusercontent.com/pixnyb/profiles/main/install.sh)"

Windows

To install the PowerShell shell profile on Windows, run the following command in PowerShell / Terminal:

irm https://raw.githubusercontent.com/pixnyb/profiles/main/install.ps1 | iex

Supported Shells

Unix

Shell Profile File Remarks
Bourne Shell .profile May be read by other shells if no other specific profile is found
Bash .bash_profile Default shell for most Unix systems
Zsh .zprofile Default shell for macOS
Fish config.fish
PowerShell Microsoft.PowerShell_profile.ps1 Default shell for Windows

Windows

Shell Profile File Remarks
PowerShell Microsoft.PowerShell_profile.ps1

Customization

In order to manually change the color of a device, you can change the contents of the .config/color (or %appdata%\PowerShell\color.txt on Windows) file. The file should contain a single line with the color code you want to use. The possible colors are defined in the profile files themselves.

As far as the profile files themselves go, I may add support for more shells in the future, keep in mind that running the install script will overwrite any changes you have made to the profile files. If you want to keep your changes, you can copy the contents of the profile files to your own profile files or opt to manually install the new profile files.