ansible/all/templates/bash_aliases.j2

39 lines
1.0 KiB
Bash
Raw Normal View History

2023-05-13 06:44:40 +05:30
# General
alias clear="printf '\033c'" # faster than ncurses clear by a lot
alias c='clear'
2023-07-21 17:49:35 +05:30
alias q="exit"
2023-05-13 06:44:40 +05:30
alias bashrc="vim ~/.bashrc && source ~/.bashrc"
# LS
alias ls='ls --color=auto -FAh'
alias ll='ls -l'
alias la='ls'
alias l.='ls | egrep "^\."'
alias l=ls
# GREP
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# GIT
alias ga='git add'
alias gc='git commit'
alias gp='git push'
alias lc='fc -nl $HISTCMD'
# CADDY
2023-05-14 17:16:42 +05:30
alias rc='caddy reload --config /etc/caddy/Caddyfile'
alias ft='caddy fmt --overwrite /etc/caddy/*.caddy && caddy fmt --overwrite /etc/caddy/Caddyfile'
alias vt='caddy validate --config /etc/caddy/*.caddy && caddy validate --config /etc/caddy/Caddyfile'
2023-05-13 06:44:40 +05:30
# DOCKER
alias dockup='docker compose pull; docker compose down && docker compose up -d --build --remove-orphans'
# Navigation
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
# Readability
alias cp="cp -iv"
alias mv='mv -iv'
alias rm='rm -iv'
alias df='df -h'
alias free='free -m'
alias mkdir='mkdir -pv'