From 9a15616663b0598433727025d55a3374e386acfd Mon Sep 17 00:00:00 2001 From: alf Date: Fri, 5 Sep 2025 09:14:01 +0000 Subject: [PATCH] .bashrc aktualisiert 7zipp aktualisiert --- .bashrc | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/.bashrc b/.bashrc index dbb99b1..233ff1b 100644 --- a/.bashrc +++ b/.bashrc @@ -4,8 +4,8 @@ #################### hier bitte anpassen !!! #################### K_PFAD="$HOME" -GIT_PFAD="$HOME/Dokumente/Gitea" -#GIT_PFAD="$HOME/Gitea" +#GIT_PFAD="$HOME/Dokumente/Gitea" +GIT_PFAD="$HOME/Gitea" TRASHVERZ="$HOME/.Müll" #################### Anpassungen Ende #################### @@ -94,17 +94,7 @@ if [ -x /usr/bin/dircolors ]; then #alias egrep='egrep --color=auto' fi -# colored GCC warnings and errors -#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' -# some more ls aliases -#alias ll='ls -l' -#alias la='ls -A' -#alias l='ls -CF' - -# enable programmable completion features (you don't need to enable -# this, if it's already enabled in /etc/bash.bashrc and /etc/profile -# sources /etc/bash.bashrc). if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion @@ -113,21 +103,21 @@ if ! shopt -oq posix; then fi fi -alias sshpc4='ssh alf@192.168.0.104 -i "$K_PFAD/id_lokal_chrome"' -alias sshpi='ssh alf@192.168.0.80 -p2222 -i $K_PFAD/id_superao' -alias sshmedia='ssh alf@192.168.0.10 -i $K_PFAD/id_lokal_chrome' -alias sshroot='ssh root@192.168.0.42 -i $K_PFAD/id_superao' -alias spzssh='sshfs oberkoetter@alsdorf.spznord.de:/srv/ /home/alf/SPZSSH -o IdentityFile=$K_PFAD/id_superao' -alias ls='ls -lh --color=auto ' -alias sshh="ssh -l alf -p2222 -i $K_PFAD/id_superao " +# PC 77 +#alias sshpc4='ssh alf@192.168.0.104 -i "$K_PFAD/id_lokal_chrome"' +#alias sshpi='ssh alf@192.168.0.80 -p2222 -i $K_PFAD/id_superao' +#alias sshmedia='ssh alf@192.168.0.10 -i $K_PFAD/id_lokal_chrome' +#alias sshroot='ssh root@192.168.0.42 -i $K_PFAD/id_superao' +#alias spzssh='sshfs oberkoetter@alsdorf.spznord.de:/srv/ /home/alf/SPZSSH -o IdentityFile=$K_PFAD/id_superao' +#alias sshh="ssh -l alf -p2222 -i $K_PFAD/id_superao " ####### Standard ######### -alias rm='echo "Bitte del benutzen!"' -alias ls="ls -lhp --group-directories-first --color=auto " -alias ssher='/bin/bash $HOME/ssher.sh' +alias ls='ls -lhp --group-directories-first --color=auto ' +rm() { echo "Bitte del benutzen!"; } +7z() { echo "Bitte 7zipp benutzen!"; } +# alias ssher='/bin/bash $HOME/ssher.sh' alias sshlogin='/bin/bash "$GIT_PFAD/ssh-cert-login/login.sh"' -alias 7zipp='7z -mhe=on -p ' # Stellen Sie sicher, dass TRASHVERZ definiert ist (z.B. in Ihrer .bashrc) @@ -209,6 +199,10 @@ function purge() { } function 7zipp() { + if [ $1 = "l" ] then + 7z l $@ + exit 0 + fi read -p "Kompressionsstufe " KOMP 7z -mhe=on -p -mx=$KOMP $@ }