Skip to content

inferont/shell-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-server, multi-container shell prompt customizations

Features

  • Same prompt, functions, and tweaks on all servers connected to via SSH.

  • Automatic search and excution of commands with the new _ command. (I.e. _ ssh for a list of all the servers you have previously conected)

  • Current git branch displayed as part of the prompt.

  • System load displayed as a part of shell title

  • Random colors for each server's hostname in prompt (Switched using regenerate).

  • Unique colors for each file type with ls output

  • A hexadecimal unix timestamp of each prompt aligned to the right. (Converted to human readable time using hextime)

  • Easily search history using up/down arrows as you type.

  • Automatically updated on all servers during session start.

  • Automatic monthly backups of shell history.

Installation Instructions

Just back up your old ~/.bashrc and download the new file from this repository:

cp ~/.bashrc{,.old}; wget -O ~/.bashrc https://raw.githubusercontent.com/inferont/shell-scripts/master/.bashrc

If you don't have Wget, try Curl:

cp ~/.bashrc{,.old}; curl -o ~/.bashrc https://raw.githubusercontent.com/inferont/shell-scripts/master/.bashrc

Restoring from Backup

Assuming you created a backup, as mentioned in the above section, this can be done with another simple one-liner, provided you've not messed with or deleted the backed-up file:

mv ~/.bashrc.old ~/.bashrc

Development/Customization

  • Customize this prompt for your own needs by forking this project and updating the .bashrc and .commonrc URLs.
  • A generic configuration section for multiple users may be introduced in the future.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages