mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-22 02:50:24 +10:00
Cleaning up shell configs.
This commit is contained in:
@@ -149,9 +149,10 @@ alias .5='cd ../../../../..'
|
||||
|
||||
# vim and emacs
|
||||
alias vim='nvim'
|
||||
alias em='/usr/bin/emacs -nw'
|
||||
alias emacs="emacsclient -c -a 'emacs'"
|
||||
alias rem="killall emacs || echo 'Emacs server not running'; /usr/bin/emacs --daemon"
|
||||
alias em='/usr/bin/emacs -nw'
|
||||
alias rem="killall emacs || echo 'Emacs server not running'; /usr/bin/emacs --daemon" # Kill Emacs and restart daemon..
|
||||
alias man="macsman" # Use emacs as your manpage reader.
|
||||
|
||||
# Changing "ls" to "eza"
|
||||
alias ls='eza -al --color=always --group-directories-first' # my preferred listing
|
||||
@@ -159,6 +160,9 @@ alias la='eza -a --color=always --group-directories-first' # all files and dirs
|
||||
alias ll='eza -l --color=always --group-directories-first' # long format
|
||||
alias lt='eza -aT --color=always --group-directories-first' # tree listing
|
||||
alias l.='eza -a | egrep "^\."'
|
||||
alias l.='eza -al --color=always --group-directories-first ../' # ls on the PARENT directory
|
||||
alias l..='eza -al --color=always --group-directories-first ../../' # ls on directory 2 levels up
|
||||
alias l...='eza -al --color=always --group-directories-first ../../../' # ls on directory 3 levels up
|
||||
|
||||
# pacman and yay
|
||||
alias pacsyu='sudo pacman -Syu' # update only standard pkgs
|
||||
@@ -166,7 +170,7 @@ alias pacsyyu='sudo pacman -Syyu' # Refresh pkglist & update stan
|
||||
alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru)
|
||||
alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru)
|
||||
alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock
|
||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages (DANGEROUS!)
|
||||
alias orphan='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages (DANGEROUS!)
|
||||
|
||||
# get fastest mirrors
|
||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
||||
@@ -174,14 +178,10 @@ alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/p
|
||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
||||
|
||||
# Colorize grep output (good for log files)
|
||||
alias grep='grep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
# adding flags
|
||||
alias df='df -h' # human-readable sizes
|
||||
alias free='free -m' # show sizes in MB
|
||||
alias df='df -h' # human-readable sizes
|
||||
alias free='free -m' # show sizes in MB
|
||||
alias grep='grep --color=auto' # colorize output (good for log files)
|
||||
|
||||
# ps
|
||||
alias psa="ps auxf"
|
||||
@@ -214,16 +214,6 @@ alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify"
|
||||
# receive the key of a developer
|
||||
alias gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
|
||||
|
||||
# Play audio files in current dir by type
|
||||
alias playwav='vlc *.wav'
|
||||
alias playogg='vlc *.ogg'
|
||||
alias playmp3='vlc *.mp3'
|
||||
|
||||
# Play video files in current dir by type
|
||||
alias playavi='vlc *.avi'
|
||||
alias playmov='vlc *.mov'
|
||||
alias playmp4='vlc *.mp4'
|
||||
|
||||
# switch between shells
|
||||
alias tobash="sudo chsh $USER -s /bin/bash && echo 'Now log out.'"
|
||||
alias tozsh="sudo chsh $USER -s /bin/zsh && echo 'Now log out.'"
|
||||
|
||||
Reference in New Issue
Block a user