Skip to content

Commit

Permalink
Disable alias from eza to ls because have problem with pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Oct 10, 2023
1 parent 9e47abe commit a7f20bb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion pkgbuild/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=biglinux-bash-config
pkgdesc="Better interactive mode"
depends=('fzf' 'blesh-git' 'grc' 'ripgrep' 'ttf-nerd-fonts-symbols-with-biglinux' 'eza' )
depends=('fzf' 'blesh-git' 'grc' 'ripgrep' 'ttf-nerd-fonts-symbols-with-biglinux' 'eza' 'bat' 'biglinux-nano-config' )
# makedepends=('')
# conflicts=('')
pkgver=$(date +%y.%m.%d)
Expand Down
58 changes: 29 additions & 29 deletions usr/share/biglinux/bash-config/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ case $- in
*) return;;
esac

# ----- Color Support & Aliases -----
# Enable color support and set related aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
fi

# More ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'

# Load Blesh for enhanced interactive shell experience
if [[ -f /usr/share/blesh/ble.sh ]] && [[ ! -f ~/.bash-normal ]]; then
source /usr/share/blesh/ble.sh --noattach
Expand Down Expand Up @@ -73,18 +88,18 @@ if [[ -f /usr/share/blesh/ble.sh ]] && [[ ! -f ~/.bash-normal ]]; then
fi

# eza Configuration for enhanced directory listings
if [ -f /usr/bin/eza ]; then
alias ls='eza --icons --group-directories-first' # ls
alias l='eza -lbF --git --icons--group-directories-first' # list, size, type, git
alias ll='eza -lbGF --git --icons--group-directories-first' # long list
alias llm='eza -lbGF --git --sort=modified --icons' # long list, modified date sort
alias la='eza -lbhHigUmuSa --time-style=long-iso --git --color-scale --icons' # all list
alias lx='eza -lbhHigUmuSa@ --time-style=long-iso --git --color-scale --icons' # all + extended list

# speciality views
alias lS='eza -1 --icons' # one column, just names
alias lt='eza --tree --level=2 --icons' # tree
fi
# if [ -f /usr/bin/eza ]; then
# alias ls='eza --icons --group-directories-first' # ls
# alias l='eza -lbF --git --icons--group-directories-first' # list, size, type, git
# alias ll='eza -lbGF --git --icons--group-directories-first' # long list
# alias llm='eza -lbGF --git --sort=modified --icons' # long list, modified date sort
# alias la='eza -lbhHigUmuSa --time-style=long-iso --git --color-scale --icons' # all list
# alias lx='eza -lbhHigUmuSa@ --time-style=long-iso --git --color-scale --icons' # all + extended list
#
# # speciality views
# alias lS='eza -1 --icons' # one column, just names
# alias lt='eza --tree --level=2 --icons' # tree
# fi
fi

# ----- History Configuration -----
Expand All @@ -94,21 +109,6 @@ HISTSIZE=1000 # Store up to 1000 commands in memory
HISTFILESIZE=2000 # Store up to 2000 commands in history file
shopt -s checkwinsize # Automatically adjust window size after each command

# ----- Color Support & Aliases -----
# Enable color support and set related aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
fi

# More ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'

# Load custom aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
Expand Down Expand Up @@ -139,8 +139,8 @@ fi
if [[ ${BLE_VERSION-} ]]; then
ble-attach
else
greenBg="\[\e[48;5;34m\]"
greenFg="\[\e[38;5;34m\]"
greenBg="\[\e[48;5;115m\]"
greenFg="\[\e[38;5;115m\]"

blackFg="\[\e[30m\]"
whiteFg="\[\e[37m\]"
Expand Down

0 comments on commit a7f20bb

Please sign in to comment.