-
Notifications
You must be signed in to change notification settings - Fork 12
/
.aliasesrc_linux
28 lines (21 loc) · 942 Bytes
/
.aliasesrc_linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ~/.bash_aliases_macos
# Define Linux specific aliases.
## ALIASES ##
## Crypto
alias wif2sha-parallel="parallel -j8 -N1 --pipe -- bash -c 'cat | base58 -d | xxd -p -c200 | sed s/^80// | rg \"[A-Fa-f0-9]{64}\"'"
# 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$//'\'')"'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Rsync
alias rsync='rsync --info=progress2'
# Crypto.
alias btcaddr2hash160="base58 -d | cut -c2- | xxd -p | head -c40"
# Docker aliases.
alias docker-connect="export DOCKER_HOST=tcp://localhost:2375"
# Ubuntu
alias apt-add-key="apt-get adv --keyserver hkp://keyserver.ubuntu.com:80 --recv"
alias apt-key-update="apt-key adv --keyserver keyserver.ubuntu.com --recv-keys" # Paste key as argument.