Adjust aliases

This commit is contained in:
the_4n0nym0u53 2022-01-24 00:03:22 +01:00
parent 0172500af4
commit 90f9620352
No known key found for this signature in database
GPG key ID: 35EE09F5481049BB
3 changed files with 15 additions and 14 deletions

View file

@ -28,7 +28,6 @@ pz source ohmyzsh/ohmyzsh lib/git
pz source ohmyzsh/ohmyzsh lib/key-bindings
# Source OMZ plugins
pz source ohmyzsh/ohmyzsh plugins/extract
pz source ohmyzsh/ohmyzsh plugins/fzf
pz source ohmyzsh/ohmyzsh plugins/git
pz source ohmyzsh/ohmyzsh plugins/z

View file

@ -1,6 +1,6 @@
alias btctl="bluetoothctl"
alias cl="clear"
alias cp="cp -i"
alias exa="exa -Fh --color=always --git --icons"
alias grep="grep --color=always"
alias ls="ls --color=always"
alias mkdir="mkdir -p"
@ -8,21 +8,23 @@ alias mv="mv -i"
alias q="exit"
alias rm="rm -i"
alias srm="srm -i"
alias t="exa --tree -I '.git'"
alias t="exa -a --tree -I '.git'"
alias tl="t -l"
alias tmux="tmux -2u"
alias u="update.sh"
alias wl-copy="wl-copy -n"
alias zgrep="zgrep --color=always"
if [[ $(uname -o) == "Android" ]]; then
alias l="exa -aFhl --color=always --git --icons"
alias la="exa -Fhl --color=always --git --icons"
alias ll="exa -aaFghl --color=always --git --icons"
alias l="exa -al"
alias la="exa -l"
alias ll="exa -aagl"
elif [[ $(uname -o) == "GNU/Linux" ]]; then
alias exa="exa -aFhl --color=always --git --icons"
alias btctl="bluetoothctl"
alias l="lsd -hlA --color=always"
alias la="lsd -hl --color=always"
alias ll="lsd -hlaF --color=always"
alias x="exa -al"
if [[ $(lsb_release -si) == "Artix" ]]; then
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"

View file

@ -1,12 +1,12 @@
function pz_upgrade {
pz zcompile -c >/dev/null
pz pull
pz zcompile >/dev/null
}
(( ${+commands[doas]} )) && function doasedit {
(( ${+commands[doas]} )) && function doasedit() {
doas -L
doas $EDITOR /etc/doas.conf
doas doas -C /etc/doas.conf && echo "ok" || echo "error"
doas -L
}
function pz_upgrade() {
pz zcompile -c >/dev/null
pz pull
pz zcompile >/dev/null
}