This file contains hidden or 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
#!/bin/bash | |
# https://www.xkcd.com/936/ | |
# apt install xkcdpass unar | |
# https://wiki.korpus.cz/doku.php/seznamy:abc_seznamy | |
SLOVNIK_URL='https://wiki.korpus.cz/lib/exe/fetch.php/seznamy:syn2015_lemma_abc_utf8.zip' | |
SLOVNIK_ZIP="${SLOVNIK_URL##*[:/]}" | |
SLOVNIK_TSV="${SLOVNIK_ZIP%.*}.tsv" # ve formátu <pořadí> "\t" <slovo> "\t" <počet> | |
WORDFILE="${SLOVNIK_TSV%.*}.wordfile" |
This file contains hidden or 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
# ~/.bashrc | |
set_prompt () { | |
local Last_Command=$? # Must come first! | |
local Blue='\[\e[00;34m\]' | |
local White='\[\e[00;37m\]' | |
local Red='\[\e[00;31m\]' | |
local BRed='\[\e[01;31m\]' | |
local Green='\[\e[00;32m\]' | |
local Yellow='\[\e[00;33m\]' |