Skip to content

Instantly share code, notes, and snippets.

View Crispy1975's full-sized avatar
☠️
Trying not to break everything...

Crispy Crispy1975

☠️
Trying not to break everything...
View GitHub Profile
@nemisj
nemisj / npm-tmp-clean.sh
Last active February 4, 2018 01:15
Removing npm tmp after install
#!/usr/bin/env bash
# this is pid of the bash we are in
bash_pid=$$
bash_pid=$(echo -e ${bash_pid} | tr -d '[[:space:]]');
# this is shell of the bash
shell_pid=$(ps -p ${bash_pid} -o ppid=;)
shell_pid=$(echo -e ${shell_pid} | tr -d '[[:space:]]');