fix(history): invert history's most and last position
Allows for a more visually stable line.
This commit is contained in:
parent
d0468afbdc
commit
ea11df19a2
1 changed files with 1 additions and 1 deletions
|
|
@ -473,7 +473,7 @@ _lp_dotmatrix_theme_prompt() {
|
||||||
hist_last="${hist_last:0:$hist_max}${DOTMATRIX_HISTORY_LAST_LEN_MARK}"
|
hist_last="${hist_last:0:$hist_max}${DOTMATRIX_HISTORY_LAST_LEN_MARK}"
|
||||||
fi
|
fi
|
||||||
local hist_most=$(history | tail -n ${DOTMATRIX_HISTORY_MOST_BACK} | awk '{print $4}' | sort | uniq --count | sort --numeric-sort --reverse | head -n 1 | awk '{print $2}')
|
local hist_most=$(history | tail -n ${DOTMATRIX_HISTORY_MOST_BACK} | awk '{print $4}' | sort | uniq --count | sort --numeric-sort --reverse | head -n 1 | awk '{print $2}')
|
||||||
inline_right="$d${hist_most}$I${hist_last}$b"
|
inline_right="$d${hist_last}$I${hist_most}$b"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
inline_right+="${DOTMATRIX_LINE}"
|
inline_right+="${DOTMATRIX_LINE}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue