pointfichiers/shell/bash/.bash_aliases

41 lines
1,015 B
Bash
Raw Normal View History

alias jaaj="jaaj | dotacat"
alias uwu="uwu | dotacat"
2023-09-28 10:52:20 +02:00
alias esp-idf-setup=". ~/.local/lib/esp-idf/export.sh"
alias steam="steam-runtime"
2023-09-28 10:52:20 +02:00
# Git
2024-02-02 15:50:36 +01:00
alias gs="git status"
alias ga="git add -p"
2023-09-28 10:52:20 +02:00
alias gc="git commit"
alias gp="git push"
alias gpl="git pull"
2023-10-10 11:12:03 +02:00
2023-10-23 09:32:17 +02:00
# uutils-coreutils aliases
if command -v pacman &> /dev/null; then
if pacman -Qi uutils-coreutils &> /dev/null; then
for i in $(pacman -Ql uutils-coreutils | cut -d \ -f 2- | grep -E '^/usr/bin/.+' | awk -F / '{ print $4 }' | sed 's/^uu-//' | grep -v '^\[$' | xargs); do
alias "${i}=uu-${i}"
2023-10-23 09:32:17 +02:00
done
alias ls="uu-ls --color=auto"
fi
fi
# Generic stuff
2024-06-03 09:13:55 +02:00
if command -v lsd &> /dev/null; then
alias ls="lsd"
2024-06-03 09:13:55 +02:00
alias l="lsd -alh"
else
alias ls="ls --color=auto"
alias l="ls -alh --color=auto"
fi
alias ip="ip --color=auto"
2024-03-13 09:47:00 +01:00
alias tld="tree -L 2"
2024-03-21 15:28:03 +01:00
alias mnt-s3="s3fs public ${S3_MOUNTPOINT} -o passwd_file=${HOME}/.passwd-s3fs -o host=${S3_HOST} -o endpoint=${S3_ENDPOINT}"
# Termux related
if command -v ssha &> /dev/null; then
alias ssh="ssha"
fi