countitems() {
dir="${1:-.}"
total=$(find "$dir" -mindepth 1 -maxdepth 1 | wc -l)
files=$(find "$dir" -mindepth 1 -maxdepth 1 -type f ! -name ".*" | wc -l)
hidden_files=$(find "$dir" -mindepth 1 -maxdepth 1 -type f -name ".*" | wc -l)Display your tmux window list directly in your terminal prompt, eliminating the tmux status bar.
Adds an additional powerline10k right prompt containing the window list from your tmux status
Note
Terminal prompts only update when you press enter, so you may see an out of date window list
| #include "nrf.h" | |
| static void flash_page_erase(uint32_t * page_address) { // Address of the first word in the page to be erased. | |
| // Turn on flash erase enable and wait until the NVMC is ready: | |
| NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Een << NVMC_CONFIG_WEN_Pos); | |
| while (NRF_NVMC->READY == NVMC_READY_READY_Busy); | |
| NRF_NVMC->ERASEPAGE = (uint32_t)page_address; |