diff options
author | ubq323 <ubq323@ubq323.website> | 2023-05-27 21:58:48 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-05-27 21:58:48 +0100 |
commit | 3ca073e1d3b19a38e6a72803c3e08763567b3d16 (patch) | |
tree | ebbc2aa6ced781cf7351234c5bd9e8b62e66fff7 /.bashrc | |
parent | ce9afcf6114d0ac7fa0d8acf5739feaa18d76803 (diff) |
bash history, sway idle
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -10,6 +10,8 @@ PS1='\[\e[90m\][\u@\h \W]\$\[\e[0m\] ' shopt -s histappend HISTCONTROL=ignoreboth +HISTSIZE=1000000 +HISTFILESIZE=1000000 alias xqr='xbps-query -R' alias xqrs='xbps-query -Rs' @@ -43,7 +45,7 @@ alias mirror='mpv --untimed --profile=low-latency --vf=hflip /dev/video0' set_title () { printf "\e]2;%s\e\\" "$1"; } _lastcmd () { history 1 | sed -e 's/^ *[0-9]* *//g' ; } trap 'set_title "$(_lastcmd)"' DEBUG -PROMPT_COMMAND='set_title "$(apwd)"' +PROMPT_COMMAND='history -a; set_title "$(apwd)"' export LUA_PATH_5_3="$HOME/.local/lib/lua/5.3/?.lua;;" export LUA_PATH_5_1="$HOME/.local/lib/lua/5.1/?.lua;;" |