cleanup
This commit is contained in:
@@ -40,8 +40,8 @@ alias encrypt="gpg --encrypt --sign --recipient frode@klevstul.com"
|
|||||||
alias extract="extract.sh"
|
alias extract="extract.sh"
|
||||||
alias gparted="sudo gparted"
|
alias gparted="sudo gparted"
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias hyprUpd="ct d h && hyprRld"
|
|
||||||
alias hyprRld="hyprctl reload"
|
alias hyprRld="hyprctl reload"
|
||||||
|
alias hyprUpd="ct d h && hyprRld"
|
||||||
alias ipadr='ip -br a'
|
alias ipadr='ip -br a'
|
||||||
alias ipcam="ffplay rtsp://192.168.31.220:554/1"
|
alias ipcam="ffplay rtsp://192.168.31.220:554/1"
|
||||||
alias ipify='http https://api.ipify.org?format=json'
|
alias ipify='http https://api.ipify.org?format=json'
|
||||||
@@ -57,11 +57,11 @@ alias sizeInBytes="stat -c %s"
|
|||||||
alias ssh_weba_r="ssh -v -t root@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
alias ssh_weba_r="ssh -v -t root@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||||
alias ssh_weba_u="ssh -v -t usr@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
alias ssh_weba_u="ssh -v -t usr@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
|
||||||
alias ssh="ssh -v"
|
alias ssh="ssh -v"
|
||||||
alias trash-empty="trash-empty && gio trash --empty"
|
|
||||||
alias tp-empty="trash-empty && gio trash --empty"
|
alias tp-empty="trash-empty && gio trash --empty"
|
||||||
alias tp-list="tree ~/.local/share/Trash/"
|
alias tp-list="tree ~/.local/share/Trash/"
|
||||||
alias tp-restore="trash-restore"
|
alias tp-restore="trash-restore"
|
||||||
alias tp="tp.sh"
|
alias tp="tp.sh"
|
||||||
|
alias trash-empty="trash-empty && gio trash --empty"
|
||||||
alias tree="tree --du -h"
|
alias tree="tree --du -h"
|
||||||
|
|
||||||
# app images
|
# app images
|
||||||
@@ -94,7 +94,6 @@ esac
|
|||||||
# lf & superfile
|
# lf & superfile
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
|
|
||||||
# lf (change directory on quit)
|
# lf (change directory on quit)
|
||||||
# ---
|
# ---
|
||||||
lf() {
|
lf() {
|
||||||
@@ -109,7 +108,6 @@ lf() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# superfile (change directory on quit)
|
# superfile (change directory on quit)
|
||||||
# ---
|
# ---
|
||||||
spf() {
|
spf() {
|
||||||
@@ -164,7 +162,6 @@ randoms() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# mounting
|
# mounting
|
||||||
# ---
|
# ---
|
||||||
@@ -173,18 +170,18 @@ alias nas-mount="nas mount 192.168.31.77"
|
|||||||
alias nas-umount="nas umount"
|
alias nas-umount="nas umount"
|
||||||
|
|
||||||
nas() {
|
nas() {
|
||||||
if [[ ! -e $dir ]] ; then
|
if [[ ! -e "/mnt/nas" ]] ; then
|
||||||
sudo mkdir -p "/mnt/nas"
|
sudo mkdir -p "/mnt/nas"
|
||||||
sudo mkdir -p "/mnt/nas-fam"
|
sudo mkdir -p "/mnt/nas-fam"
|
||||||
elif [[ ! -d "/mnt/nas" ]] || [[ ! -d "/mnt/nas-fam" ]] ; then
|
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
|
echo "'/mnt/nas' and/or '/mnt/nas-fam' exist, but is not a directory" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $1 ]] ; then
|
if [[ -n $1 ]] ; then
|
||||||
if [[ $1 == "umount" ]] || [[ $1 == "unmount" ]] ; then
|
if [[ $1 == "umount" ]] || [[ $1 == "unmount" ]] ; then
|
||||||
echo "umount /mnt/nas & /mnt/nas-fam"
|
echo "umount /mnt/nas & /mnt/nas-fam"
|
||||||
sudo umount /mnt/nas
|
sudo umount -l /mnt/nas
|
||||||
sudo umount /mnt/nas-fam
|
sudo umount -l /mnt/nas-fam
|
||||||
elif [[ $1 == "mount" ]] && [[ -n $2 ]]; then
|
elif [[ $1 == "mount" ]] && [[ -n $2 ]]; then
|
||||||
echo "mount /mnt/nas & /mnt/nas-fam"
|
echo "mount /mnt/nas & /mnt/nas-fam"
|
||||||
sudo mount -t cifs -o credentials=/home/poq/syncDir/secrets/nas/lillesorteboks.txt,iocharset=utf8,noperm //$2/fro /mnt/nas
|
sudo mount -t cifs -o credentials=/home/poq/syncDir/secrets/nas/lillesorteboks.txt,iocharset=utf8,noperm //$2/fro /mnt/nas
|
||||||
@@ -200,6 +197,7 @@ nas() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# multimedia
|
# multimedia
|
||||||
# ---
|
# ---
|
||||||
|
|||||||
Reference in New Issue
Block a user