This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pretty print binary pattern of a number | |
pb() { | |
pn 2 4 "${1}" | |
} | |
# Pretty print octal value of a number | |
po() { | |
pn 8 3 "${1}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# | |
# Dependencies: | |
# jq — JSON processing | |
# morutils — updating file in place using sponge | |
# | |
# TODO: Check for existence of the config file | |
config_file="${HOME}/.config/powerline/themes/tmux/default.json" |