dotfiles/.zshrc.d/aliases.zsh

33 lines
1023 B
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
alias la="eza -a --sort time --group-directories-first"
alias ls="eza --sort time --group-directories-first"
alias ll="eza -l --sort time --group-directories-first"
alias lsd="eza -D --sort time"
alias lsf="eza -f --sort time"
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"