dotfiles

My dotfiles
git clone git://src.gearsix.net/dotfiles
Log | Files | Refs | Atom

commit 6bea5f920d3522f0d6e77156440bbfe410919cb7
parent 72bdd794f1e4db707e29a3181b120c9273efb370
Author: gearsix <gearsix@tuta.io>
Date:   Sun,  5 Mar 2023 13:04:16 +0000

bashrc: LC_COLLATE, sort ls by ASCII; EDITOR=nvim; plan9 dir

Diffstat:
Mbashrc | 19++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/bashrc b/bashrc @@ -4,9 +4,9 @@ # exports export PS1='\[\e[1m\]\A \[\e[0m\e[3m\]\w \[\e[0m\]$ ' export CC=gcc -export EDITOR=micro +export EDITOR=nvim export GOPATH=$HOME/.go -export PLAN9=/usr/lib/plan9 +export PLAN9=/usr/local/plan9 export PATH=$PATH:~/.local/bin:$GOPATH/bin:/usr/local/go/bin:$PLAN9/bin # aliases @@ -26,13 +26,14 @@ alias cp='cp -vr' # verbose, recursive alias mv='mv -vi' # verbose, interactive alias mkd='mkdir -p' # make parent directories -alias l='ls -lh' # list format, human-readable -alias ll='ls -lha' # list format, human-readable, all -alias lla='ls -lAh' # show almost all, human-readable -alias lsa='ls -Ah' # list format, all, human-readable -alias llt='ls -lAht' # list format, show almost all, human-readable, sort by modification time (newest first) -alias lls='ls -lAhS' # list format, show almost all, human-readable, sort by file size (largest first) -alias llu='ls -lAhu' # list format, show almost all, human-readable, sort by user +# LC_COLLATE, sort by ASCII (not locale) +alias l='LC_COLLATE=C ls -1h' # 1 column, human-readable +alias ll='LC_COLLATE=C ls -lha' # list format, human-readable, all +alias lla='LC_COLLATE=C ls -lAh' # show almost all, human-readable +alias lsa='LC_COLLATE=C ls -Ah' # list format, all, human-readable +alias llt='LC_COLLATE=C ls -lAht' # list format, show almost all, human-readable, sort by modification time (newest first) +alias lls='LC_COLLATE=C ls -lAhS' # list format, show almost all, human-readable, sort by file size (largest first) +alias llu='LC_COLLATE=C ls -lAhu' # list format, show almost all, human-readable, sort by user # open a new window instead of `less`ing it (if using gnome-terminal) if [ "$(command -v gnome-terminal)" != "" ]; then alias man='gnome-terminal -- man'; fi