Skip to content

Commit

Permalink
bashrc: prompt flags for "vsync+" and "vsync-"
Browse files Browse the repository at this point in the history
  • Loading branch information
phd committed Dec 18, 2024
1 parent 6cddbbc commit 8701702
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .bashrc-phd
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ function __update_prompt_flags {
if [ "${__NV_PRIME_RENDER_OFFLOAD}" = '1' ] && [ "${__GLX_VENDOR_LIBRARY_NAME}" = 'nvidia' ]; then
__prompt_flags="${__prompt_flags} ${C_MAGENTA}nv${C_NONE}"
fi
if [ "${__GL_SYNC_TO_VBLANK}" = '1' ] && [ "${vblank_mode}" = '1' ]; then
__prompt_flags="${__prompt_flags} ${C_MAGENTA}vsync+${C_NONE}"
fi
if [ "${__GL_SYNC_TO_VBLANK}" = '0' ] && [ "${vblank_mode}" = '0' ]; then
__prompt_flags="${__prompt_flags} ${C_MAGENTA}vsync-${C_NONE}"
fi
}

function colorpwd {
Expand Down

0 comments on commit 8701702

Please sign in to comment.