53a3cd7933
The contents of git_info are subject to expansion by the shell. Avoid
putting raw ref names in the prompt to protect the user from arbitrary
code execution via specially crafted ref names (e.g., a ref named
'$(IFS=_;cmd=sudo_rm_-rf_/;$cmd)' would execute 'sudo rm -rf /' when the
prompt is drawn). Instead, put the ref names in new global variables and
reference these variables from git_info.
See:
- https://github.com/njhartwell/pw3nage
-
|
||
---|---|---|
.. | ||
archive | ||
completion | ||
custom | ||
debug | ||
directory | ||
environment | ||
fasd | ||
git | ||
git-info | ||
history | ||
history-substring-search | ||
input | ||
meta | ||
pacman | ||
prompt | ||
spectrum | ||
ssh | ||
syntax-highlighting | ||
utility |