You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jakub Szczerbiński edited this page Mar 31, 2022
·
4 revisions
You can find ptSh configuration file in ~/.config/ptSh/config.
Escape codes
You can set colors and text decorations with ANSI escape codes. Every escape code has some effect (foreground color, background color, underline, blinking etc.). You can list all escape codes and see their effects with this script:
Correct ways to specify escape codes in config are \x1B[Ym and \033[Ym, where Y is escape code number (this from script output), e.g.:
DIR_NAME_ESCAPE_CODES='\x1B[35m'#sets foreground color of directory name to magneta
FILE_NAME_ESCAPE_CODES='\x1B[4m'#sets underline for file names
LINK_NAME_ESCAPE_CODES='\x1B[5m\x1B[42m'#makes hyperlink name blinking and green background color
Restoring default configuration
Config file with default configuration is in /usr/share/ptSh/config. To restore defaults, replace your config file with it: