mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
# General aliases, should only be sourced in interactive shells
|
|
|
|
# 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$//'\'')"'
|
|
|
|
# Cryptsetup alias
|
|
alias luksFormat='sudo cryptsetup luksFormat -s 512 -c aes-xts-plain --use-random -h sha256 -i 5000'
|
|
|
|
# Colors
|
|
alias ls='ls --color=auto'
|
|
alias grep='grep --color=auto'
|
|
alias egrep='egrep --color=auto'
|
|
alias fgrep='fgrep --color=auto'
|
|
|
|
# Easy upgrade
|
|
alias dist-upgrade="sudo sh -c 'apt-get update && apt-get -y dist-upgrade'"
|
|
|
|
# Timestamp in a machine-sortable form
|
|
alias tstamp="date '+%Y%m%d-%H%M%S'"
|
|
|
|
# Prepare code for markdown
|
|
alias mdcode="sed 's/^/ /'"
|
|
|
|
# Intel format plz
|
|
alias objdump="command objdump -M intel"
|
|
|
|
# ACK
|
|
alias ack="ack-grep"
|
|
|
|
# Launch chrome for burp
|
|
alias chrome-for-burp="/usr/bin/google-chrome --ignore-certificate-errors --user-data-dir=${HOME}/.chrome-for-burp --proxy-server=127.0.0.1:8080 >/dev/null 2>&1 &"
|