scmbreeze / scm_breeze

Adds numbered shortcuts to the output git status, and much more
https://madebynathan.com/2011/10/19/git-shortcuts-like-youve-never-seen-before/
MIT License
2.82k stars 192 forks source link

Option to use ogham / exa for ls_with_file_shortcuts as ll_command #308

Open sreeram-dev opened 3 years ago

sreeram-dev commented 3 years ago

https://github.com/ogham/exa is a ls replacement written in rust and pretty prints output. I was wondering if we can configure ls_with_file_shortcuts to use exa as ll_command.

lib/git/shell_shortcuts.sh - is the file

jeffbyrnes commented 3 years ago

I have SCM Breeze’s ll_command disabled, and have these shell aliases instead:

alias l='exa -lgF --icons'
alias ll='l'
sreeram-dev commented 3 years ago

scm_breeze does a good job of creating shortcuts. I don't want to lose that ability.

alstanchev commented 11 months ago

It's been a while but since i have landed here and maybe others will too, my solution for using 'exa' and maintain the scm_breeze is to edit the ".scm_breeze/lib/git/shellshortcuts.sh". Replace the definition of the ll_command in the ls_with_file_shortcuts_ function and adapt the arguments (some are not needed) because they are not one to one. At the end where the alias la is defined change the -A -> -a