You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alan Faubert 409c98a5bf bash: add wsl/*.bashrc 1 year ago
..
config bash: add .sudo_as_admin_successful 1 year ago
scripts bash: 2link.sh: trim trailing / from directory name 1 year ago
wsl bash: add wsl/*.bashrc 1 year ago
README.md bash: add wsl/*.bashrc 1 year ago

README.md

Bash

Config

config/* contains code that's symlinked to from ~.

If you create additional ~/.bashrc.d/* or ~/.profile.d/* files, they will also be run when sourcing ~/.bashrc or ~/.profile, respectively. This can be used for additional commands that shouldn't be checked into this repo.

Scripts

  • 2link.sh - create relative symlinks to files or directories from given directory
  • 2path.sh - create symlinks to files or directories from ~/.local/bin, giving unique names to directories
  • syncfiles.sh - given paths to two or more files, prompt to copy the newest one over each of the ones it differs from

Optional WSL scripts

  • wsl/*.bashrc - scripts to be symlinked to from ~/.bashrc.d/* for optional WSL-specific enhancements

Adding color to root user shells

Add this to /etc/bash.bashrc

PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
eval $(dircolors --sh)
alias ls='ls --color=auto'