Reformat aliases.zsh
This commit is contained in:
parent
ff6def74c6
commit
e0659f6925
|
@ -11,7 +11,8 @@ alias -g .....="../../../.."
|
|||
alias -g ......="../../../../.."
|
||||
|
||||
# ls'ing
|
||||
if (( ${+commands[exa]} )); then
|
||||
alias ls="ls --color=always"
|
||||
(( ${+commands[exa]} )) && {
|
||||
alias exa="exa -Fh --color=always --git --icons"
|
||||
alias la="exa -l"
|
||||
alias l="exa -al"
|
||||
|
@ -23,36 +24,42 @@ if (( ${+commands[exa]} )); then
|
|||
alias tl="t -l"
|
||||
alias tla="tl -a"
|
||||
alias tlaa="tla -g@"
|
||||
else
|
||||
alias l="ls -Ahl"
|
||||
alias la="ls -hl"
|
||||
alias ll="ls -aFhl"
|
||||
alias t="tree -CI '.git|node_modules'"
|
||||
alias ta="t -a"
|
||||
fi
|
||||
}
|
||||
|
||||
# Git
|
||||
alias gi="git init"
|
||||
alias gsa="git submodule add"
|
||||
alias gsur="git submodule update --remote"
|
||||
(( ${+commands[git]} )) && {
|
||||
alias gi="git init"
|
||||
alias gsa="git submodule add"
|
||||
alias gsur="git submodule update --remote"
|
||||
}
|
||||
|
||||
# Vagrant
|
||||
alias vagrant-scp="scp -F =(vagrant ssh-config) -i =(ssh-add -L)"
|
||||
alias vagrant-ssh="ssh -F =(vagrant ssh-config) -i =(ssh-add -L)"
|
||||
(( ${+commands[vagrant]} )) && {
|
||||
alias vagrant-scp="scp -F =(vagrant ssh-config) -i =(ssh-add -L)"
|
||||
alias vagrant-ssh="ssh -F =(vagrant ssh-config) -i =(ssh-add -L)"
|
||||
}
|
||||
|
||||
# Mounting
|
||||
# Filesystems
|
||||
alias lsblk="lsblk -o name,mountpoint,size,label,uuid"
|
||||
alias lock="udisksctl lock -b"
|
||||
alias mount="udisksctl mount -b"
|
||||
alias unlock="udisksctl unlock -b"
|
||||
alias unmount="udisksctl unmount -b"
|
||||
(( ${+commands[udisksctl]} )) && {
|
||||
alias lock="udisksctl lock -b"
|
||||
alias mount="udisksctl mount -b"
|
||||
alias unlock="udisksctl unlock -b"
|
||||
alias unmount="udisksctl unmount -b"
|
||||
}
|
||||
|
||||
# Searching
|
||||
alias grep="grep --color=always"
|
||||
alias zgrep="zgrep --color=always"
|
||||
alias rgh="rg --hidden -g '!/.git/'"
|
||||
(( ${+commands[rg]} )) &&
|
||||
alias rgh="rg --hidden -g '!/.git/'"
|
||||
|
||||
# Misc.
|
||||
alias cl="clear"
|
||||
alias e="\$EDITOR"
|
||||
alias se="sudoedit"
|
||||
alias q="exit 0"
|
||||
alias visudo="sudo EDITOR=\"rvim -nc 'set nobackup nowritebackup'\" visudo"
|
||||
(( ${+commands[tmux]} )) &&
|
||||
alias tmux="tmux -2u"
|
||||
(( ${+commands[dotnet]} )) &&
|
||||
|
@ -62,12 +69,6 @@ alias rgh="rg --hidden -g '!/.git/'"
|
|||
alias less="bat -p --paging=always"
|
||||
alias nless="bat --paging=always"
|
||||
}
|
||||
alias cl="clear"
|
||||
alias e="$EDITOR"
|
||||
alias se="sudoedit"
|
||||
alias ls="ls --color=always"
|
||||
alias q="exit 0"
|
||||
alias visudo="sudo EDITOR=\"rvim -nc 'set nobackup nowritebackup'\" visudo"
|
||||
|
||||
# Platform specific
|
||||
if [[ $(. /etc/os-release && echo $ID) == "artix" ]]; then
|
||||
|
|
Loading…
Reference in a new issue