Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 195c315714 | |||
| b91b43b56d | |||
| a64f2253b6 | |||
| 7f21a0fc7b | |||
| 87aca38811 |
@@ -145,7 +145,50 @@
|
|||||||
fi
|
fi
|
||||||
curl "https://wttr.in/${1//\ /+}"
|
curl "https://wttr.in/${1//\ /+}"
|
||||||
}
|
}
|
||||||
export_PS1: export PS1='[\u@\h \w]\$ '
|
export_PS1: |
|
||||||
|
## Prompts ##
|
||||||
|
|
||||||
|
# Old Trusty
|
||||||
|
#export PS1='[\u@\h \w]\$ '
|
||||||
|
|
||||||
|
# 20251201 - Add time.
|
||||||
|
#export PS1='[\t \u@\h \w]\$ '
|
||||||
|
|
||||||
|
# 20251201 - Add colors.
|
||||||
|
# This helps to determine the color palette numbers:
|
||||||
|
# https://robotmoon.com/bash-prompt-generator/
|
||||||
|
PURPLE=`tput setaf 5`
|
||||||
|
ORANGE=`tput setaf 214`
|
||||||
|
GREEN=`tput setaf 2`
|
||||||
|
|
||||||
|
RED=`tput setaf 9`
|
||||||
|
SCARLET=`tput setaf 1`
|
||||||
|
YELLOW=`tput setaf 226` # 11 does not seem to work
|
||||||
|
|
||||||
|
GRAY=`tput setaf 8`
|
||||||
|
|
||||||
|
RESET=`tput sgr0`
|
||||||
|
BOLD=`tput bold`
|
||||||
|
|
||||||
|
if [[ "$USER" == "root" || $UID == 0 ]]; then
|
||||||
|
CLR_BRACKETS=$BOLD$YELLOW
|
||||||
|
CLR_TIME=$BOLD$ORANGE
|
||||||
|
CLR_USER=$BOLD$SCARLET
|
||||||
|
CLR_DIR=$BOLD$RED
|
||||||
|
CLR_PROMPT=$BOLD$GRAY
|
||||||
|
else
|
||||||
|
CLR_BRACKETS=$RESET
|
||||||
|
CLR_TIME=$BOLD$PURPLE
|
||||||
|
CLR_USER=$BOLD$ORANGE
|
||||||
|
CLR_DIR=$BOLD$GREEN
|
||||||
|
CLR_PROMPT=$RESET
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PS1='\[$CLR_BRACKETS\][\[$CLR_TIME\]\t \[$CLR_USER\]\u@\h \[$CLR_DIR\]\w\[$CLR_BRACKETS\]]\[$CLR_PROMPT\]\$ \[$RESET\]'
|
||||||
|
|
||||||
|
export PS2='\[$CLR_BRACKETS\](\[$CLR_TIME\]>\[$CLR_USER\]^\[$CLR_DIR\].\[$CLR_USER\]^\[$CLR_BRACKETS\])\[$CLR_TIME\]> \[$RESET\]'
|
||||||
|
|
||||||
|
## End Prompts ##
|
||||||
alias_remount: |
|
alias_remount: |
|
||||||
alias remount='
|
alias remount='
|
||||||
sudo umount /mnt/*
|
sudo umount /mnt/*
|
||||||
@@ -1063,6 +1106,15 @@
|
|||||||
status="$?"
|
status="$?"
|
||||||
return "$status"
|
return "$status"
|
||||||
}
|
}
|
||||||
|
function_loop: |
|
||||||
|
function loop {
|
||||||
|
cmd="$1"
|
||||||
|
while true; do
|
||||||
|
$cmd
|
||||||
|
done;
|
||||||
|
}
|
||||||
|
alias try="loop "
|
||||||
|
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | Common Variable
|
- name: General | Account Management | Users | Files | Common Variable
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -1146,6 +1198,7 @@
|
|||||||
{{ alias_docker_other }}
|
{{ alias_docker_other }}
|
||||||
{{ alias_flatpak_clean }}
|
{{ alias_flatpak_clean }}
|
||||||
{{ alias_commit }}
|
{{ alias_commit }}
|
||||||
|
{{ function_loop }}
|
||||||
|
|
||||||
- name: General | Account Management | Users | Files | .bashrc
|
- name: General | Account Management | Users | Files | .bashrc
|
||||||
blockinfile:
|
blockinfile:
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
- "{{ evolution }}*"
|
- "{{ evolution }}*"
|
||||||
- gparted
|
- gparted
|
||||||
- hugo
|
- hugo
|
||||||
|
- wireless-tools
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Packages | GS Connect (KDE Connect, Android Tool)
|
- name: Workstation | Linux | Software | Packages | GS Connect (KDE Connect, Android Tool)
|
||||||
|
|||||||
Reference in New Issue
Block a user