Skip to content

Instantly share code, notes, and snippets.

View addaitech's full-sized avatar

Larry Bankovich addaitech

  • addai technologies
  • Clymer, NY
View GitHub Profile
function PS1.set
{
typeset prefix remaining=${.sh.value} var= n= k=
set -A .sh.lversion ${.sh.version}
while [[ $remaining ]]
do
prefix=${remaining%%'\'*}
remaining=${remaining#$prefix}
var+="$prefix"

Keybase proof

I hereby claim:

  • I am addaitech on github.
  • I am addaitech (https://keybase.io/addaitech) on keybase.
  • I have a public key ASAyB5lPoS97v5WKqB2WF2DurB4yTbAozHMZ_yHKRkfreQo

To claim this, I am signing this object:

#!/bin/bash
# msys2 build-tools, plus misc libs installer
# lennox@lennox.pw
pacman -S --noconfirm mingw-w64-x86_64-gcc
pacman -S --noconfirm mingw-w64-x86_64-gdb
pacman -S --noconfirm git
pacman -S --noconfirm make
pacman -S --noconfirm mingw-w64-x86_64-cmake
pacman -S --noconfirm mingw-w64-x86_64-pkg-config
pacman -S --noconfirm mingw-w64-x86_64-freetype
Useful flags
Assume yes for all prompts
--y
Assume no for all prompts
--assumeno
Disable GPG verification
curl -L git.io/pizzzza
curl -L git.io/pizzza
curl -L git.io/vburger
curl -L git.io/burger
curl -L git.io/rice
## Functions
function ssh_state {
if [ -n "$SSh_CONNECTION" ]; then
echo "%{$fg[red]%}<%{$fg[white]%}SSH%{$fg[red]%}> "
fi
}
function collapse_pwd {
if [[ $(pwd) == $HOME ]]; then
# echo $(pwd)