forked from Job79/devcontainer
29 lines
852 B
Plaintext
29 lines
852 B
Plaintext
# Tools
|
|
pbcopy() { curl -sF "content=<-" "https://paste.plabble.org/$2?lang=$1" && echo; }
|
|
alias code="flatpak run com.visualstudio.code"
|
|
alias random="cat /dev/urandom | tr -dc '[:alpha:]' | fold -w ${1:-20} | head -n 1"
|
|
|
|
# Dev containers
|
|
export DEVC_REGISTRY="git.plabble.org/maurice"
|
|
|
|
function devc() {
|
|
"$HOME/dev/devcontainer/devc.sh" "$@" -mdf
|
|
}
|
|
|
|
alias rider="DEVC_COMMAND=/home/user/Rider/bin/rider devc rider -x11 -host-spawn -net"
|
|
alias flutter="devc flutter -x11 -host-spawn -kvm -usb -gpu"
|
|
alias androidstudio="DEVC_COMMAND=/home/user/AndroidStudio/bin/studio devc android -x11 -host-spawn -kvm -usb -gpu"
|
|
|
|
function hx() {
|
|
arg="${1:-.}"
|
|
DEVC_COMMAND="hx $arg" devc fedora -mnt $arg
|
|
}
|
|
|
|
# Git aliases
|
|
alias gc="git commit -m"
|
|
alias ga="git add -A"
|
|
alias gf="git fetch"
|
|
alias gp="git pull"
|
|
alias gpp="git push"
|
|
alias gs="git status"
|