wip/bash
This commit is contained in:
parent
b73663cf4b
commit
1486ff4246
1 changed files with 13 additions and 3 deletions
|
@ -1,13 +1,23 @@
|
||||||
HISTCONTROL="ignorespace"
|
[ "$(cat /proc/$$/comm)" = "bash" ] || return
|
||||||
|
|
||||||
HISTSIZE=-1
|
# completion
|
||||||
|
|
||||||
HISTTIMEFORMAT="%Y%m%d %H%M%S "
|
|
||||||
file="/usr/share/bash-completion/bash_completion"
|
file="/usr/share/bash-completion/bash_completion"
|
||||||
|
|
||||||
if [ -f "${file}" ]; then
|
if [ -f "${file}" ]; then
|
||||||
. "${file}"
|
. "${file}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# history
|
||||||
|
|
||||||
|
HISTCONTROL="ignorespace"
|
||||||
|
|
||||||
|
HISTSIZE=-1
|
||||||
|
|
||||||
|
HISTTIMEFORMAT="%Y%m%d %H%M%S "
|
||||||
|
|
||||||
|
# prompt
|
||||||
|
|
||||||
ps1() {
|
ps1() {
|
||||||
local date host
|
local date host
|
||||||
local code="${1}"
|
local code="${1}"
|
||||||
|
|
Loading…
Reference in a new issue