From 2a304fdfdfc953111d2ef55ad4ad46db3b834137 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Wed, 7 Feb 2018 09:25:24 +0100 Subject: [PATCH 1/2] Lowercase dirnames in pd to avoid env variables This is not foolproof, but most critical environment variables are all uppercase, so lowercase variables will be mostly safe. --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 8800fe6..7037ace 100644 --- a/.zshrc +++ b/.zshrc @@ -44,7 +44,7 @@ pd(){ else pushd "$@" fi - namedir $(echo $(basename "$PWD" | tr -cd 'A-Za-z0-9_') | sed -e 's/^[0-9]/_&/') + namedir $(echo $(basename "$PWD" | tr -cd 'A-Za-z0-9_') | tr 'A-Z' 'a-z' | sed -e 's/^[0-9]/_&/') echo "$PWD" } From d076880470de0edec9c9d2c08b474bd7d1bcd146 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Mon, 9 Apr 2018 12:00:22 +0200 Subject: [PATCH 2/2] Order hist strictly by date By default git tries to keep different branches together, but I find that more confusing than helpful. --- .gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 1ed4f9f..67e8eff 100644 --- a/.gitconfig +++ b/.gitconfig @@ -6,7 +6,7 @@ ci = commit st = status br = branch - hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short + hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short --date-order type = cat-file -t dump = cat-file -p [push]