commit 33edf7c41b2fc5b268abcf249bd2e779b6fe3481 parent 5c2a6d92d6a7fe3040c1e524c3e27f97a658727e Author: Michael Neuper <michael@michaelneuper.com> Date: Wed, 30 Jul 2025 14:19:34 +0200 add aliases to .bashrc Diffstat:
| M | .bashrc | | | 45 | +++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 45 insertions(+), 0 deletions(-)
diff --git a/.bashrc b/.bashrc @@ -20,3 +20,48 @@ fi if [ -z "$UBUNTU_MENUPROXY" ]; then UBUNTU_MENUPROXY=1 fi + +# Aliases +if command -v bat >/dev/null 2>&1; then + alias cat="bat --plain --theme=gruvbox-dark" +fi + +if command -v zoxide >/dev/null 2>&1; then + alias cd="z" +fi + +if command -v lsd >/dev/null 2>&1; then + alias ls="lsd -F" + alias ll="lsd -Fl" +else + alias ls="ls -GF" + alias ll="ls -GFl" +fi + +alias home="cd ~/" + +alias e="nvim" +alias v="nvim" +alias vim="emacs -nw" + +if command -v git-st >/dev/null 2>&1; then + alias gs="git-st" +else + alias gs="git status --short --branch" +fi + +alias gst="git status" +alias ga="git add" +alias gb="git branch" +alias gbd="git branch -D" +alias gcb="git checkout -b" +alias gch="git checkout" +alias gc="git commit -m" +alias gp="git pull" +alias gpu="git push" +alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" + +alias bs="brew search" +alias bi="brew install" +alias bic="brew install --cask" +alias bu="brew update && brew upgrade"