bash/commands,completion,history,prompt
This commit is contained in:
parent
1f44f63093
commit
6818171cbc
4 changed files with 0 additions and 0 deletions
5
bash/bash/commands.sh
Normal file
5
bash/bash/commands.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
# change current directory to its parent
|
||||
alias ..='cd ..'
|
||||
|
||||
# exit terminal
|
||||
alias x='exit'
|
5
bash/bash/completion.sh
Normal file
5
bash/bash/completion.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
file='/usr/share/bash-completion/bash_completion'
|
||||
|
||||
if [ -f "${file}" ] ; then
|
||||
source "${file}"
|
||||
fi
|
5
bash/bash/history.sh
Normal file
5
bash/bash/history.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
HISTCONTROL='ignorespace'
|
||||
|
||||
HISTSIZE=-1
|
||||
|
||||
HISTTIMEFORMAT='%Y%m%d %H%M%S '
|
15
bash/bash/prompt.sh
Normal file
15
bash/bash/prompt.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
PS1="\
|
||||
┌ \t\
|
||||
– \e[0;31m\${?}\e[0m\
|
||||
– \e[0;32m\u\e[0m\
|
||||
@ \e[0;33m\h\e[0m\
|
||||
"
|
||||
if [ "$(type -t __git_ps1)" == 'function' ] ; then
|
||||
PS1="${PS1} –\e[0;35m\$(__git_ps1)\e[0m"
|
||||
fi
|
||||
PS1="${PS1}
|
||||
│\e[0;36m\${PWD}\e[0m
|
||||
└ "
|
||||
|
||||
PS2="\
|
||||
└ "
|
Loading…
Add table
Add a link
Reference in a new issue