Does it work with less -R
? You can put export LESS=R
to .bashrc
and simply less
command should interpret colours correctly.
I tried it, and no joy with either exa or lsd on keeping colours, even with the -R (that should work. More research needed, I guess. I suspect lsd will be more difficult to get to work, because of the āgraphicsā it also uses⦠(which I assume are awesome terminal fonts)
I am quite tempted to try this one on a non arch-based distro:
exa --color=always | less
works fine for me, donāt know about lsd
.
Thanks for that - lsd also manages to show colour that way through less -R - and it ditches the āiconsā for that use. Now to decide which to use, and which aliases need to be redone!
Loving cat! But as far as Iām aware, you canāt bash an alias with spaces, it would need to be done as a shell function.
# ls alternatives: _lsa() { lsd --color=always "$@" | less -RF ; } _lsb() { exa --color=always "$@" | less -RF ; } _lsc() { exa --color=always "$@" | bat ; }
Then aliases:
alias ll='_lsa -l' # and so on...
No, theyāre fineā¦
alias ls=lsd`
alias lt=`ls --tree
But Iāll try your suggestions tomorrow when I have a few more minutes.
Of course this leads to being āhelplessā without the aliases file⦠Could be worth it thoughā¦
Thanks for the shortcut!
Woah - should we split this off to a new thread?
Terminal shenanigans.
Though a few are essential ācrutchesā - rc files are good places to leave notes and Iām learning to always look up my commands whilst using terminal⦠but if something like ābatā is such a good replacement for ācatā who wouldnāt do '⯠alias cat ā cat=bat
For example, when you download your flac music and itās one huge file with a cue file⦠and you want to use musicbrainz to import itā¦
alias cueflac cueflac='cuebreakpoints cd.cue |shnsplit -o flac cd.flac && cuetag cd.cue split-track*.flac'
Iām finding some errors with lsd.
If I put it to automatically cd, for example, and then cd to an āunfriendlyā location, it slows down with many Permission denied (oserror 13). The bug is listed under the snap version, but still unfixed⦠so exa is looking stronger.
After messing I settled on exa and some basic startups (exa, unlike lsd, has no config file - so alias is a good start)
# ls alternatives:
alias ls='exa --icons --color=always --group-directories-first'
alias la='ls -a'
alias ll='ls -l | less -RF'
# and so on...
# Automatically ls when changing directory
cd() {
builtin cd "$@" && ls
}
Better for me - I can always do āalias lsā to remind myself if somethingās not going smoothlyā¦
Works well with Dolphin and seems a more compatible ls
replacement.
All part of the fun! BTW - I wouldnāt do alias cat=bat because I am too lazy to do all the extra typing if I happen to need plain cat (no colours etc). I would actually have to type in /usr/bin/cat - instead of just choosing the first letter differently!
exa on the other hand - load 'er up!
Yes, I took that alias out because of theming⦠to manage when I switch from dark to light theming Seems good with
--theme="Solarized (light)"
Hold on, donāt you have a backslash?
Not that I know of - different shell perhaps? I try to stay fairly simple, as I swap between distros so muchā¦
Yes pleaseā¦
\cat
Overrides the alias and uses the plain and boring
I didnāt know that - I just thought I had to reference it by full path! It may not be the biggest thing I learn today, but potentially useful regardless⦠Easily accessed by UPHOME\ ENTER tooā¦
Tested by myself and works well.
Step 1. Set up your first plasma - nice dark theme etc. Including fonts, and set your terminal theme as default. I tried it with my breeze/kvantum etc.
run `consave -s DarkPurple %% consave -lā
Currently it reports [Errno 2] No such file or directory: '/home/ben/.config/klipperrc'
but the listing shows it worked.
Now you can mess about and make another - maybe Light, or alternative (Pink or Winter) scheme with different fonts to suit a light desktop and do consave -s Lighter && consave -l
Now to change theme, I found it works best with a script to refreshā¦
#!/bin/bash
consave -a 2
latte-dock --replace &&
plasmashell --replace &&
if pgrep -x "dolphin"
then pkill dolphin
fi
Make one script for each profile. Bingo - working a treat.
UPDATE - already gone through some merges.
Now itās Konsave.
I just discovered
which allows to map keyboard and mouse buttons on Wayland.
Itās key-mapper-git
on AUR.
There are similar named but different packages like
keymapper-git
, donāt confuse themā
Hereās another good thing - dua-cli
Disk Usage Analyzer