38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
# vim: set filetype=sh nospell:
|
|
|
|
## Use the kitty ssh kitten so that terminfo will be copied over to the remote
|
|
## otherwise the remote doesn't recognize kitty terminal
|
|
alias ssh="kitten ssh"
|
|
alias mosh='mosh --ssh="kitten ssh"'
|
|
|
|
# Show process names by default with pgrep
|
|
alias pgrep='pgrep -l'
|
|
|
|
# Use ov as less
|
|
alias less=ov
|
|
|
|
alias fd=fdfind
|
|
|
|
# Use eza as ls
|
|
local eza_args="--sort=time --group-directories-first --icons=auto"
|
|
alias la="eza -a $eza_args"
|
|
alias ls="eza $eza_args"
|
|
alias ll="eza -l $eza_args"
|
|
alias lla="eza -l -a $eza_args"
|
|
alias lsd="eza -D $eza_args"
|
|
alias lsf="eza -f $eza_args"
|
|
|
|
alias grep='grep --color=auto'
|
|
alias fgrep='fgrep --color=auto'
|
|
alias egrep='egrep --color=auto'
|
|
|
|
# Add an "alert" alias for long running commands. Use like so:
|
|
# sleep 10; alert
|
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
|
|
|
## Use main clipbard by default with xclip
|
|
alias xclip="xclip -selection clipboard"
|
|
|
|
# Qalc
|
|
alias q=qalc
|