i3blocks, new nfrc script
This commit is contained in:
20
bash/.bashrc
20
bash/.bashrc
@ -122,22 +122,6 @@ export PATH=$PATH:$HOME/go/bin
|
||||
eval "$(zoxide init bash)"
|
||||
|
||||
|
||||
question() {
|
||||
if [[ "$2" == "1" ]]; then
|
||||
read -r -p "$1 (y/N)" choice < /dev/tty
|
||||
case "$choice" in
|
||||
"y"|"Y"|"д"|"Д" ) exit 0 ;;
|
||||
""|"n"|"N"|"н"|"Н" ) exit 1 ;;
|
||||
* ) echo "Неопознанный ответ"; question "$1" $2 ;;
|
||||
esac
|
||||
else
|
||||
read -r -p "$1 (Y/n)" choice < /dev/tty
|
||||
case "$choice" in
|
||||
""|"y"|"Y"|"д"|"Д" ) exit 0 ;;
|
||||
"n"|"N"|"н"|"Н" ) exit 1 ;;
|
||||
* ) echo "Неопознанный ответ"; question "$1" $2 ;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
source ~/.dotfiles/nfrc.sh
|
||||
|
||||
source ~/.dotfiles/nfrc
|
||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
|
Reference in New Issue
Block a user