Skip to content

Instantly share code, notes, and snippets.

@cheuerde
cheuerde / powerline_setup.sh
Last active August 31, 2023 21:52
Powerline on Debian and Centos for BASH, VIM and TMUX
# Claas Heuer, November 2015
#
# Setup Powerline on Debian and Centos for BASH, VIM and TMUX
# source: https://fedoramagazine.org/add-power-terminal-powerline/
# install on debian
sudo apt-get install python-pip
sudo apt-get install powerline
@drmalex07
drmalex07 / getopt-example.sh
Last active May 3, 2024 03:03
A small example on Bash getopts. #bash #getopt #getopts
#!/bin/bash
#
# Example using getopt (vs builtin getopts) that can also handle long options.
# Another clean example can be found at:
# http://www.bahmanm.com/blogs/command-line-options-how-to-parse-in-bash-using-getopt
#
aflag=n
bflag=n