Skip to content

JJDLTorre/mybashrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mybashrc

Collection of startup scripts I like to have.

How to download the .inputrc file

curl https://raw.githubusercontent.com/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

About

Collection of startup scripts I like to have.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published