Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

134 Commits
 
 
 
 
 
 

Repository files navigation

bash_profile

What is the bash_profile

bash_profile is a configuration file for bash shell. When bash is invoked as an interactive login shell it first reads and executes commands from ~/. bash_profile.

Why common bash_profile

The idea is to share best practices, suggestions, tricks and keep the same profile across multiple development platforms easily cloning from the repository.

System Operation versions

MAC version:

A typical install of OSX won't create a .bash_profile for you. When you want to run functions from your command line, this is a must-have.

Setup

Startup Terminal
Type: "cd ~/" to go to your home folder
Type: "touch .bash_profile" to create your new file.
Edit: .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit.
Type: ". .bash_profile" to reload .bash_profile and update any functions you add (reload by the system)

Commands and alliases:

edit bash_profile

open -e ~/.bash_profile

if you don't have this file, create it!

touch ~/.bash_profile

paste the bash_profile

reload profile

. ~/.bash_profile
// from now on we will use the bash_profile
To edit: "edit_profile"
to reload: "reload_profile" (reload by using bash_profile)

Windows version:

Note: Use double quotes instead of single one.

git config --global alias.ci "commit -v"
 git config --global alias.log "log --pretty=oneline"
 git config --global alias.log1 "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

--


{ 'Leo Lanese',
'Building Inspiring Responsive Reactive Solutions',
'London, UK' }
Questions / Suggestion / Recommendation ? developer@leolanese.com

About

bash_profile to shared best practices, tricks and keep the same profile across multiple development platforms

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages