Abbreviations
This commit is contained in:
parent
31e4fd5c19
commit
8a457625aa
@ -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"
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
11
conf.d/50_abbr_common.fish
Normal file
11
conf.d/50_abbr_common.fish
Normal 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
|
||||||
16
conf.d/51_abbr_filesystem.fish
Normal file
16
conf.d/51_abbr_filesystem.fish
Normal 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"
|
||||||
23
conf.d/52_abbr_network.fish
Normal file
23
conf.d/52_abbr_network.fish
Normal 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
|
||||||
22
conf.d/53_abbr_packages.fish
Normal file
22
conf.d/53_abbr_packages.fish
Normal 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
|
||||||
19
conf.d/54_abbr_services.fish
Normal file
19
conf.d/54_abbr_services.fish
Normal 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
5
conf.d/55_abbr_git.fish
Normal 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
7
conf.d/56_abbr_edit.fish
Normal 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"
|
||||||
Loading…
x
Reference in New Issue
Block a user