From a7f20bbf6f551494a00f1fe0ca7d5294a9082147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Tue, 10 Oct 2023 06:34:57 -0300 Subject: [PATCH] Disable alias from eza to ls because have problem with pipe --- pkgbuild/PKGBUILD | 2 +- usr/share/biglinux/bash-config/bashrc | 58 +++++++++++++-------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD index e0d5cef..145c8a9 100644 --- a/pkgbuild/PKGBUILD +++ b/pkgbuild/PKGBUILD @@ -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) diff --git a/usr/share/biglinux/bash-config/bashrc b/usr/share/biglinux/bash-config/bashrc index 6f61f84..87c9ba6 100644 --- a/usr/share/biglinux/bash-config/bashrc +++ b/usr/share/biglinux/bash-config/bashrc @@ -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 @@ -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 ----- @@ -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 @@ -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\]"