diff --git a/.bashrc b/.bashrc index 375387b..c16633f 100644 --- a/.bashrc +++ b/.bashrc @@ -14,6 +14,9 @@ export HISTSIZE=20000 export HISTFILESIZE=20000 export PROMPT_DIRTRIM=3 +# Save and display timestamps for history +HISTTIMEFORMAT="[%F %T] " + # Color output and default options export GREP_OPTS='--color=auto' export LS_OPTS='--color=auto -hFN --group-directories-first' diff --git a/.bashrc.d/10_common_aliases.sh b/.bashrc.d/10_common_aliases.sh index bd7f43e..4f4ba4a 100644 --- a/.bashrc.d/10_common_aliases.sh +++ b/.bashrc.d/10_common_aliases.sh @@ -70,6 +70,9 @@ function lscat() { done } +# Shortcut for lscat (either c for cat or c for "see") +alias c='lscat' + function calc() { echo "$@" | bc } diff --git a/.gitconfig.inc/common.gitconfig b/.gitconfig.inc/common.gitconfig index 4fdf05e..5d3c504 100644 --- a/.gitconfig.inc/common.gitconfig +++ b/.gitconfig.inc/common.gitconfig @@ -2,6 +2,9 @@ # Normalize line endings autocrlf = input +[advice] + detachedHead = false + [init] defaultBranch = main