dotfiles/.bash_aliases

39 lines
1 KiB
Bash

# tmux
alias tmuxa="tmux a -t "
alias tmuxn="tmux new -s "
alias tmuxl="tmux ls"
alias tmuxk="tmux kill-session -t"
# abkuerzungen
alias ip="ip --color=auto"
alias cls="clear"
alias tracert="traceroute"
alias df="df -h"
alias du="du -h"
alias grep="grep -i --color=auto"
alias hostname="hostname -f"
alias untar="tar -xzf"
alias unmount="umount"
alias ru="rip url"
alias mkdir="mkdir -p"
alias last="last -w"
alias ll="ls -lAh"
alias tree="tree -a -I **.git**"
# git
alias gs="git status"
alias gf="git fetch"
alias gdel="git reset --hard ; git clean -f"
alias glast="git log -1 HEAD --stat"
alias gd="git difftool"
alias gsp="git stage -p"
alias gflog="git log -- "
alias gb="git branch"
# docker
alias dcu="docker compose up"
alias dlogs="docker compose logs -f"
alias dcd="docker compose down"
alias dcr="docker compose down && docker compose up -d"
alias dps="docker ps --no-trunc --all --format 'table {{.Names}}\t{{.Status}}\t{{.State}}\t{{.CreatedAt}}\t{{.RunningFor}}\t{{.Size}}'"
# safeguard
alias mv="mv -i "
alias cp="cp -i "
alias rm="rm -i "