This commit is contained in:
committer@tuxwarrior
2025-05-10 08:59:44 -05:00
parent b39ef81678
commit e935fc5def

View File

@@ -47,6 +47,7 @@ alias myip="echo $(wget http://ipinfo.io/ip -qO -)"
alias nr="nitrogen --restore"
alias rate-mirrors="rate-mirrors --allow-root --protocol https arch | grep -v '^#' | sudo tee /etc/pacman.d/mirrorlist"
alias sb="source ~/.bashrc"
alias sbr="source /home/poq/syncDir/gitRepos/gt.op.fo/lnx-arch/dots/bash/.bashrc" # source bash (from) repo
alias starwars="telnet towel.blinkenlights.nl"
alias tp-empty="trash-empty"
alias tp-list="tree ~/.local/share/Trash/"
@@ -302,6 +303,13 @@ alias nas-unmount="sudo systemctl stop mnt-nas.mount"
#alias nas-unmount-2="sudo umount /mnt/nas"
nas() {
if [[ ! -e $dir ]] ; then
sudo mkdir -p "/mnt/nas"
sudo mkdir -p "/mnt/nas-fam"
elif [[ ! -d "/mnt/nas" ]] || [[ ! -d "/mnt/nas-fam" ]] ; then
echo "'/mnt/nas' and/or '/mnt/nas-fam' exists, but is not a directory" 1>&2
fi
if [[ -n $1 ]] ; then
if [[ $1 == "umount" ]] || [[ $1 == "unmount" ]] ; then
echo "umount /mnt/nas & /mnt/nas-fam"