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
// Program to display the current working directory but ensure that the string | |
// does not take up more than half of the current terminal window size | |
// | |
// Compile as gcc prompt_dir.c -o prompt_dir_str -Wall -Wextra -pedantic -std=c11 -ltermcap -O3 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> |
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
#!/bin/bash | |
## Prompt setup | |
update_shell_prompt() { | |
RED='\[\e[0;31m\]' | |
GREEN='\[\e[0;32m\]' | |
BLUE='\[\e[0;34m\]' | |
PURPLE='\[\e[0;35m\]' | |
RESET='\[\e[0m\]' |
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
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off | |
# 256 colors | |
attrcolor b ".I" | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' | |
defbce on |