Make ls look for .hidden file

This commit is contained in:
Isaac Shoebottom 2024-09-18 18:25:19 -03:00
parent 54845fc0c8
commit d1c86ea041
2 changed files with 15 additions and 0 deletions

10
dot_bash_alias.sh Normal file
View File

@ -0,0 +1,10 @@
function ls() {
if [[ -f .hidden ]]; then
exa --icons --long --ignore-glob="$(cat .hidden | tr '\n' '|')"
else
exa --icons --long
fi
}
alias grep="ugrep"
alias cd="z"
alias cat="bat -p"

5
dot_bash_setup.sh Normal file
View File

@ -0,0 +1,5 @@
# Initialize zoxide
eval "$(zoxide init bash)"
# Add JetBrains scripts to path
export PATH="$PATH:/home/isaac/.local/share/JetBrains/Toolbox/scripts"