From 3458164a380e69e28578b53801a1adadcd9a9e59 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Wed, 22 Nov 2023 16:37:59 +0100 Subject: [PATCH 1/3] gitconfig: Set advice.detachedHead=false --- .gitconfig.inc/common.gitconfig | 3 +++ 1 file changed, 3 insertions(+) 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 From 2c00847807f4201774ece23f1adfdf395d126601 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Wed, 22 Nov 2023 16:39:37 +0100 Subject: [PATCH 2/3] bashrc: Set HISTTIMEFORMAT --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) 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' From a7f548e94895461e1823791c26d0cf6f7823e466 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Wed, 22 Nov 2023 16:40:21 +0100 Subject: [PATCH 3/3] bashrc: Add shortcut "c" for "lscat" --- .bashrc.d/10_common_aliases.sh | 3 +++ 1 file changed, 3 insertions(+) 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 }