#!/bin/bash function set_PS1 { PS1="something cool \[\]\[\] " } precmd_functions+=(set_PS1)