aboutsummaryrefslogtreecommitdiff
path: root/mksh.d/00-misc.sh
blob: ce666fb66b70ec4bf6a22e9171374412cdad750f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
alias wanip='curl ipinfo.io/ip'

function psgrep {
	ps u `pgrep "$1"`
}

function colors {
  for x in 0 1 4 5 7 8; do
    for i in $(seq 30 37); do
      for a in $(seq 40 47); do
        echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "
      done
      echo ""
    done
  done
  echo ""
}