Abbreviations

This commit is contained in:
Candifloss 2026-07-16 04:30:13 +05:30
parent 31e4fd5c19
commit 8a457625aa
9 changed files with 103 additions and 8 deletions

View File

@ -1,11 +1,6 @@
# General aliases # General aliases
# General # General
alias c="clear"
alias h="history"
alias j="jobs -l"
alias vi="vim"
alias vimdiff="vim -d" alias vimdiff="vim -d"
alias python="python3" alias python="python3"

View File

@ -1,14 +1,11 @@
# Filesystem aliases # Filesystem aliases
# Navigation # Navigation
alias ..="cd .." alias ..="cd .."
alias ...="cd ../.." alias ...="cd ../.."
alias ....="cd ../../.." alias ....="cd ../../.."
alias .....="cd ../../../.." alias .....="cd ../../../.."
alias -="cd -"
# Listing # Listing
alias ls="lsd" alias ls="lsd"
alias l="lsd -lh" alias l="lsd -lh"

View File

@ -0,0 +1,11 @@
# General abbreviations
abbr c clear
abbr cls clear
abbr h history
abbr j "jobs -l"
abbr py python3
abbr vi vim
abbr svi "sudo vim"
abbr se sudoedit

View File

@ -0,0 +1,16 @@
# Filesystem abbreviations
abbr -- - "cd -" # Go to previous dir
abbr md "mkdir -p"
abbr rd rmdir
abbr untar "tar -xvf"
abbr tarview "tar -tf"
abbr targz "tar -czvf"
abbr tarxz "tar -cJvf"
abbr tarbz2 "tar -cjvf"
abbr chmodx "chmod +x"
abbr lsblkfs "lsblk -o NAME,FSTYPE,SIZE,FSUSED,FSAVAIL,MOUNTPOINTS"

View File

@ -0,0 +1,23 @@
# Networking abbreviations
# iproute2
abbr ipa "ip addr"
abbr ipb "ip -br addr"
abbr ipr "ip route"
abbr ipl "ip link"
abbr ipn "ip neigh"
# bridge
abbr br bridge
# ss
abbr lports "ss -ltn"
abbr ssp "ss -tulpen"
abbr ports "ss -tulpen"
# DNS
abbr dns "dig +short"
# Network diagnostics
abbr trct traceroute

View File

@ -0,0 +1,22 @@
# Package management
# Install / remove
abbr inst "sudo apt install -y"
abbr apti "sudo apt install -y"
abbr aptr "sudo apt remove"
abbr aptp "sudo apt purge"
# Search / information
abbr apts "apt search"
abbr aptsh "apt show"
# Maintenance
abbr aptu "sudo apt update"
abbr aptug "sudo apt update && sudo apt full-upgrade"
abbr apta "sudo apt autoremove"
abbr aptc "sudo apt clean"
abbr aptl "apt list --installed"
# Package files
abbr aptf apt-file

View File

@ -0,0 +1,19 @@
# Services
# systemd
abbr sc systemctl
abbr sst "systemctl status"
abbr ssu "systemctl --user"
abbr reload "sudo systemctl daemon-reload"
abbr reexec "sudo systemctl daemon-reexec"
# journalctl
abbr jc journalctl
abbr jcb "journalctl -b"
abbr jcf "journalctl -f"
abbr jce "journalctl -xe"
abbr jcu "journalctl -u"
# Power
abbr rb "sudo reboot"
abbr shutdown "sudo shutdown now"

5
conf.d/55_abbr_git.fish Normal file
View File

@ -0,0 +1,5 @@
# Git
abbr gs "git status"
abbr gc "git commit"
abbr gp "git push"

7
conf.d/56_abbr_edit.fish Normal file
View File

@ -0,0 +1,7 @@
# Edit
abbr fstab "sudo vim /etc/fstab"
abbr hosts "sudo vim /etc/hosts"
abbr vimsshd "sudo vim /etc/ssh/sshd_config"
abbr sshconfig "vim ~/.ssh/config"
abbr sudoers "sudo visudo"