This commit is contained in:
Marc Beninca 2024-11-13 13:14:58 +01:00
parent 818f48d92f
commit 87c53a18ba
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 6 additions and 5 deletions

View file

@ -1,12 +1,13 @@
ps1() { ps1() {
local code=${1} local date host
local date="$(date +%H:%M:%S)" local code="${1}"
date="$(date +%H:%M:%S)"
local git local git
local host="$(hostname)" host="$(hostname)"
local path="${PWD}" local path="${PWD}"
local user="${USER}" local user="${USER}"
local view="└ " local view="└ "
if [ ${code} -ne 0 ]; then if [ "${code}" -ne 0 ]; then
view="${view}\e[0;31m" view="${view}\e[0;31m"
else else
view="${view}\e[0;32m" view="${view}\e[0;32m"

View file

@ -23,7 +23,7 @@ fs_make_btrfs_swap() {
local size="${2}" local size="${2}"
local uuid="${3}" local uuid="${3}"
if [ -n "${path}" ]; then if [ -n "${path}" ]; then
set filesystem mkswapfile set -- filesystem mkswapfile
if [ -n "${size}" ]; then if [ -n "${size}" ]; then
set -- "${@}" \ set -- "${@}" \
--size "${size}" --size "${size}"