GitHub - skkylimits/.bashrc: These are my .bashrc settings for WSL · GitHub
Skip to content

Latest commit

 

History

12 Commits

Folders and files

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages