Skip to content

Commit

Permalink
refactor: replace exa with eza fork
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames committed Feb 4, 2024
1 parent ae880b6 commit 0153c18
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion home/aqua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ packages:
- name: twpayne/[email protected]
- name: zellij-org/[email protected]
- name: weaveworks/[email protected]
- name: ogham/[email protected]
- name: keilerkonzept/[email protected]
- name: magefile/[email protected]
- name: starship/[email protected]
Expand Down Expand Up @@ -82,3 +81,4 @@ packages:
- name: PaulJuliusMartinez/[email protected]
- name: konradsz/[email protected]
- name: rhysd/[email protected]
- name: eza-community/[email protected]
2 changes: 1 addition & 1 deletion home/private_dot_config/fish/conf.d/__is_has.fish
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ set has_bins \
brew \
bob \
cargo \
exa \
eza \
fd \
direnv \
dyff \
Expand Down
2 changes: 1 addition & 1 deletion home/private_dot_config/fish/conf.d/abbrs.fish
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/env fish

if [ $IS_LINUX ]
and ! [ $HAS_EXA ]
and ! [ $HAS_EZA ]
set _ls_arg ' --color'
end

Expand Down
6 changes: 3 additions & 3 deletions home/private_dot_config/fish/custom_functions.d/ls.fish
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/env fish

function ls --wraps exa
if [ $HAS_EXA ]
exa --classify --group-directories-first $argv
function ls --wraps eza
if [ $HAS_EZA ]
eza --classify --group-directories-first $argv
else
command ls $argv
end
Expand Down
4 changes: 2 additions & 2 deletions home/private_dot_zsh/private_aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ alias lt='ls *(.m0)' # files (no directories) modified in last day
alias lnew='ls *(.om[1,3])' # list three newest
alias drs='dirs -v' # list recent directories - use ~ to select

# if ls is using exa, ignore setting ls functions
if [[ ! $(which ls | grep exa) ]]; then
# if ls is using eza, ignore setting ls functions
if [[ ! $(which ls | grep eza) ]]; then
if [[ $IS_MAC -eq true ]]; then
alias lh='ls -d .*' # show hidden files/directories only
alias lsd='ls -aFhl'
Expand Down

0 comments on commit 0153c18

Please sign in to comment.