Skip to content

Instantly share code, notes, and snippets.

@vbloher
vbloher / enable_colorful_bash.sh
Last active June 10, 2022 13:40
enable colorful terminal
#!/bin/bash
# force enable colors
sed -i '/#force_color_prompt=yes/c\force_color_prompt=yes' $HOME/.bashrc
# remove old color scheme
sed -i '/if \[ "\$color_prompt" = yes \]; then/{n;d}' $HOME/.bashrc
# add new color scheme
sed -i '/if \[ "\$color_prompt" = yes \]; then/a PS1="\${debian_chroot:+(\$debian_chroot)}\\\[\\033\[01;31m\\\]\\u\\\[\\033\[01;33m\\\]@\\\[\\033\[01;36m\\\]\\h \\\[\\033[01;33m\\\]\\w \\\[\\033\[01;35m\\\]\\\$ \\\[\\033\[00m\\\]"' $HOME/.bashrc
# read .bashrc on login
echo "source .bashrc" >> $HOME/.bash_profile
# read new config in current session
@vbloher
vbloher / sifchain-redelegate.sh
Created January 27, 2022 13:23
Redelegate script for Sifchain
#!/bin/bash
curl -s https://raw.githubusercontent.com/Staketab/node-tools/main/logo.sh | bash
RED="\033[31m"
YELLOW="\033[33m"
GREEN="\033[32m"
NORMAL="\033[0m"
function setup {
### Keybase proof
I hereby claim:
* I am vbloher on github.
* I am vbloher (https://keybase.io/vbloher) on keybase.
* I have a public key ASB8y6Us4io9gR0qTnu1Kulciak2EVWGKtJ_N91ls3eg1Qo
To claim this, I am signing this object: