1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

aliases: split alpine-sdk and add more aliases

This commit is contained in:
Joe Groocock 2018-07-30 09:31:18 +01:00
parent 7f8c8eccb3
commit 5d3eb76075
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

14
aliases
View File

@ -1,5 +1,3 @@
#!/usr/bin/zsh
# Common Aliases
alias -g ...=../..
alias -g ....=../../..
@ -66,7 +64,7 @@ alias grip='grip --user=frebib --pass=$GRIP_API_KEY'
alias acme.sh='$XDG_CONFIG_HOME/acme.sh/acme.sh --home $XDG_CONFIG_HOME/acme.sh --config-home $XDG_CONFIG_HOME/acme.sh --log $XDG_CONFIG_HOME/acme.sh/acme.sh.log'
alias acmesh='$XDG_CONFIG_HOME/acme.sh/acme.sh --home $XDG_CONFIG_HOME/acme.sh --config-home $XDG_CONFIG_HOME/acme.sh --log $XDG_CONFIG_HOME/acme.sh/acme.sh.log'
exists gopass && alias pass='gopass'
alias abuild='docker run -ti --rm \
alias alpine-sdk='docker run -ti --rm \
-e USER \
-e UID="$(id -u)" \
-e PWD \
@ -74,7 +72,13 @@ alias abuild='docker run -ti --rm \
-w $PWD \
-v $PWD:$PWD \
-v ~/.abuild:$HOME/.abuild \
frebib/alpine-sdk:edge abuild'
-v ~/.abuild/distfiles:/var/cache/distfiles \
frebib/alpine-sdk:edge'
alias abuild='alpine-sdk abuild'
alias abuild-sign='alpine-sdk abuild-sign'
alias apk='alpine-sdk apk'
alias hddtemps='find /sys/block/ -name sd\* | sed "s|sys/block|dev|g" | sudo xargs hddtemp | sort -t: -k3'
alias stripansi='sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g"'
# System aliases
alias s="sudo systemctl"
@ -274,6 +278,4 @@ alias nf=neofetch
randstr() { tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w $1 | head -n 1; }
alias rot13="tr '[A-Za-z]' '[N-ZA-Mn-za-m]'"
alias lab="ssh -tt tw '~/ctl' 2>/dev/null"
# vim: ft=sh