Comments (9)
You can replace the default BSD-flavored version of ls
with the GNU version to get back that option. brew install coreutils
will get you these tools. Some more info here: https://stackoverflow.com/a/57973942
from scm_breeze.
You can replace the default BSD-flavored version of
ls
with the GNU version to get back that option.brew install coreutils
will get you these tools. Some more info here: https://stackoverflow.com/a/57973942
Think you, it works.👍
from scm_breeze.
A symlink worked for me, without having to add everything from coreutils into my $PATH
:
brew install coreutils
ln -s /usr/local/opt/coreutils/libexec/gnubin/ls /usr/local/bin
Then ensure /usr/local/bin
is in your $PATH
before /bin
.
I first tried an alias ls=/usr/local/opt/coreutils/libexec/gnubin/ls
but this didn't work since SCM Breeze refers to \ls
which disregards any aliases.
from scm_breeze.
Sadly this didn't work for me. Any progress on getting this fixed in the core release?
from scm_breeze.
I don't have the hardware to test, so I haven't done any work concerning this.
from scm_breeze.
Bumping into this one on Monterey too
from scm_breeze.
brew install coreutils
and this patch fixed it for me:
diff --git a/lib/git/shell_shortcuts.sh b/lib/git/shell_shortcuts.sh
index 43b7215..052b663 100644
--- a/lib/git/shell_shortcuts.sh
+++ b/lib/git/shell_shortcuts.sh
@@ -116,10 +116,10 @@ if [ "$shell_ls_aliases_enabled" = "true" ] && builtin command -v ruby > /dev/nu
local ll_output
local ll_command # Ensure sort ordering of the two invocations is the same
if [ "$_ls_bsd" != "BSD" ]; then
- ll_command=(\ls -hv --group-directories-first)
+ ll_command=(\gls -hv --group-directories-first)
ll_output="$("${ll_command[@]}" -l --color "$@")"
else
- ll_command=(\ls)
+ ll_command=(\gls)
ll_output="$(CLICOLOR_FORCE=1 "${ll_command[@]}" -lG "$@")"
fi
from scm_breeze.
There's already code that's meant to identify macOS, but it's broken on recent macOS versions:
scm_breeze/lib/git/shell_shortcuts.sh
Lines 100 to 103 in 24d0817
This code runs ls --color=auto
and checks whether that results in an error. If it does, the code assumes that the OS is macOS (technically BSD). According to fish-shell/fish-shell#8309, Big Sur added a --color
option to ls
. So the exit status of ls --color=auto
no longer differentiates the BSD version of ls
from the GNU version.
from scm_breeze.
An easy fix would be to use something like ls --author
instead of ls --color=auto
.
from scm_breeze.
Related Issues (20)
- Support git switch & restore
- Shell commands stopped getting wrapped HOT 4
- Separator is not working correctly HOT 2
- Path to .zshrc is hardcoded to ~/.zshrc
- command not found: compdef on zsh after upgrading from bash HOT 2
- ASYNC_PTYS[]: invalid parameter name HOT 2
- Bash completion doesn't work for git v2.30 HOT 3
- Option to use ogham / exa for ls_with_file_shortcuts as ll_command HOT 3
- `gd [number]` doesn't work in the submodule!! HOT 4
- Add test cases for branches containing `.` period characters.
- Shortcut for vscode in WSL breaking when I use scm-breeze HOT 2
- update_scm_breeze giving a git protocol error HOT 4
- ohmyzsh & numbered shortcuts not working HOT 5
- Completions for 'gl' and 'gla' aliases doesn't work
- Running git funcitons in subshell breaks vared in zsh HOT 7
- File.exists? is deprecated in ruby 3.2.0 HOT 2
- Allow configurable maxdepth in repo_index
- Completions for folder names with parentheses/brackets dont work HOT 1
- git status does not show numbers HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scm_breeze.