From 62b73f7e78de9d73c72fc764bf28a025bdd9ec2d Mon Sep 17 00:00:00 2001 From: Will Owens Date: Mon, 28 Mar 2022 08:57:48 -0700 Subject: [PATCH 1/2] Update installation repo URL Github has stopped supporting `git://` protocol URLs See: https://github.blog/2021-09-01-improving-git-protocol-security-github/ --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e1512d5..d4d95ad 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ features. ## Installation ```bash -git clone git://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze +git clone https://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze ~/.scm_breeze/install.sh source ~/.bashrc # or source "${ZDOTDIR:-$HOME}/.zshrc" ``` From 38143cd5ec0749cd65eb343568878188ab584a2f Mon Sep 17 00:00:00 2001 From: Will Owens Date: Thu, 23 Jun 2022 15:01:58 -0400 Subject: [PATCH 2/2] Switch to output parse of `--version` to determine ls flavor --- lib/git/shell_shortcuts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/shell_shortcuts.sh b/lib/git/shell_shortcuts.sh index 5f09b8a..a508823 100644 --- a/lib/git/shell_shortcuts.sh +++ b/lib/git/shell_shortcuts.sh @@ -97,7 +97,7 @@ fi if [ "$shell_ls_aliases_enabled" = "true" ] && builtin command -v ruby > /dev/null 2>&1; then # BSD ls is different to Linux (GNU) ls # Test for BSD ls - if ! ls --color=auto > /dev/null 2>&1; then + if ! (ls --version 2>/dev/null || echo "BSD") | grep GNU >/dev/null 2>&1; then # ls is BSD _ls_bsd="BSD" fi