Skip to content

skkylimits/.bashrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

.bashrc

This is my .bashrc settings for Windows Linux Subsystem

Enhance git branch display

``bash parse_git_status() { status=$(git status --porcelain 2>/dev/null) if [ "$status" != "" ]; then echo "✗" fi }

export PS1="\u@\h:\w$(parse_git_branch)$(parse_git_status) $ "


and

```bash	
# Git branch in prompt
parse_git_branch() {
  git branch 2>/dev/null | grep \* | sed 's/\* \(.*\)/ (\1)/'
}

# Add Git info to prompt
export PS1="\u@\h:\w\$(parse_git_branch) $ "

spend some time and make it beautifull.

Install

Caution

Back up your own settings if necessary before running this command.

curl -o ~/.bashrc https://raw.githubusercontent.com/skkylimits/.bashrc/main/.bashrc && curl -o ~/.bash_aliases https://raw.githubusercontent.com/skkylimits/.bashrc/main/.bash_aliases && curl -o ~/.bash_logout https://raw.githubusercontent.com/skkylimits/.bashrc/main/.bash_logout && echo "Settings downloaded! Restart your terminal or source ~/.bashrc"

Colortool

Validate your colorscheme

https://github.com/microsoft/terminal/tree/main/src/tools/ColorTool

About

These are my .bashrc settings for WSL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages