Nicer home page
This commit is contained in:
26
bash.org
26
bash.org
@@ -48,6 +48,10 @@
|
||||
# Line wrap on window resize
|
||||
shopt -s checkwinsize
|
||||
|
||||
# Enable history expansion with space
|
||||
# E.g. typing !!<space> will replace the !! with your last command
|
||||
bind Space:magic-space
|
||||
|
||||
# Expand Aliases
|
||||
shopt -s expand_aliases
|
||||
|
||||
@@ -56,6 +60,9 @@
|
||||
|
||||
# Enable history appending instead of overwriting
|
||||
shopt -s histappend
|
||||
|
||||
# Save multi-line commands as one command
|
||||
shopt -s cmdhist
|
||||
#+END_SRC
|
||||
|
||||
** Prompt - =PS1=
|
||||
@@ -204,9 +211,20 @@ https://doronbehar.com/articles/using-kdeconnect-to-comfortably-send-sms-message
|
||||
Undocumented feature which sets the size to "unlimited". http://stackoverflow.com/questions/9457233/unlimited-bash-history
|
||||
|
||||
#+BEGIN_SRC bash
|
||||
export HISTFILESIZE=
|
||||
export HISTSIZE=
|
||||
export HISTTIMEFORMAT="[%F %T] "
|
||||
# Huge history. Doesn't appear to slow things down, so why not?
|
||||
HISTSIZE=500000
|
||||
HISTFILESIZE=100000
|
||||
|
||||
# Avoid duplicate entries
|
||||
HISTCONTROL="erasedups:ignoreboth"
|
||||
|
||||
# Don't record some commands
|
||||
export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history:clear"
|
||||
|
||||
# Use standard ISO 8601 timestamp
|
||||
# %F equivalent to %Y-%m-%d
|
||||
# %T equivalent to %H:%M:%S (24-hours format)
|
||||
HISTTIMEFORMAT='%F %T '
|
||||
#+END_SRC
|
||||
|
||||
Change the file location because certain bash sessions truncate =.bash_history= file upon close. http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
|
||||
@@ -312,7 +330,7 @@ This is important for termite to work when sshing in remote machines.
|
||||
PATH=$HOME/appimages:$PATH
|
||||
PATH=$HOME/.gem/ruby/2.5.0/bin:$PATH
|
||||
PATH=$GOPATH:$GOPATH/bin:$PATH
|
||||
PATH=~/.emacs.d/bin:$PATH
|
||||
PATH=~/.config/emacs/bin:$PATH
|
||||
export PATH
|
||||
#+END_SRC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user