Skip to content

miligithub/TerminalPrompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TerminalPrompt

This is the .bashrc and .bash_profile I use to personalize my Terminal.


What is the difference between .bash_profile and .bashrc?

https://apple.stackexchange.com/questions/51036/what-is-the-difference-between-bash-profile-and-bashrc

.bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells.

However, if you add the following to your .bash_profile, you can then move everything into your .bashrc file so as to consolidate everything into one place instead of two:

if [ -f ~/.bashrc ]; then
  source ~/.bashrc
fi

The hostname utility prints the name of the current host. The super-user can set the hostname by supplying an argument. To keep the hostname between reboots, run `scutil --set HostName name-of-host'.


Git setting

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

About

This is the .bashrc file I use to personalize my Terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages