Difference between revisions of ".bashrc and .bash profile"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(24 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | *<code>[[~]]/[[.bashrc]]</code> | |
− | + | *<code>~/[[.bash_profile]]</code> | |
− | + | *<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 == | ||
+ | * <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
.bash_profile
example[edit]
set -o vi . ~/.bash_aliases export HISTTIMEFORMAT="%d/%m/%y %T "
suaws () { export AWS_PROFILE=$1 }
Related terms[edit]
.profile
and.zprofile
alias
:viconfig, viprofile
.hushlogin
PS1
,PATH
su -
suaws
source (command)
bash -i
bash --rcfile
See also[edit]
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
zsh
,~/.zshrc
,.zsh_history
,.zprofile
,zshbuiltins, setenv, setopt
,bindkey -e, zshcompsys, compdef, autoload
,oh-my-zsh, prezto, fc, compinit, autoload, oh-my-zsh
Advertising: