Difference between revisions of ".bashrc and .bash profile"

From wikieduonline
Jump to navigation Jump to search
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  
  
[[~]]/[[.bashrc]]
+
*<code>[[~]]/[[.bashrc]]</code>
~/[[.bash_profile]]  
+
*<code>~/[[.bash_profile]]</code>
~/[[.bash_aliases]]
+
*<code>~/[[.bash_aliases]]</code>
  
  
  
 
== <code>.bash_profile</code> example ==
 
== <code>.bash_profile</code> example ==
  set -o vi
+
  [[set -o vi]]
 
  . ~/[[.bash_aliases]]
 
  . ~/[[.bash_aliases]]
 
  export [[HISTTIMEFORMAT]]="%d/%m/%y %T "
 
  export [[HISTTIMEFORMAT]]="%d/%m/%y %T "
  
 +
[[suaws]] () {
 +
      [[export]] [[AWS_PROFILE]]=$1
 +
}
  
 
== Related terms ==
 
== Related terms ==
[[.profile]]
+
* <code>[[.profile]]</code> and <code>[[.zprofile]]</code>
 +
* <code>[[Bash: alias|alias]]</code>: <code>[[viconfig]], [[viprofile]]</code>
 +
* <code>[[.hushlogin]]</code>
 +
* <code>[[PS1]]</code>, <code>[[PATH]]</code>
 +
* <code>[[su -]]</code>
 +
* <code>[[suaws]]</code>
 +
* <code>[[source (command)]]</code>
 +
* <code>[[bash -i]]</code>
 +
* <code>[[bash --rcfile]]</code>
  
 
== See also ==
 
== See also ==
 
* {{bash}}
 
* {{bash}}
 
+
* {{zsh}}
  
 
[[Category:Bash]]
 
[[Category:Bash]]

Latest revision as of 09:29, 13 February 2024

Advertising: