.bashrc aktualisiert
7zipp aktualisiert
This commit is contained in:
40
.bashrc
40
.bashrc
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
#################### hier bitte anpassen !!! ####################
|
#################### hier bitte anpassen !!! ####################
|
||||||
K_PFAD="$HOME"
|
K_PFAD="$HOME"
|
||||||
GIT_PFAD="$HOME/Dokumente/Gitea"
|
#GIT_PFAD="$HOME/Dokumente/Gitea"
|
||||||
#GIT_PFAD="$HOME/Gitea"
|
GIT_PFAD="$HOME/Gitea"
|
||||||
TRASHVERZ="$HOME/.Müll"
|
TRASHVERZ="$HOME/.Müll"
|
||||||
#################### Anpassungen Ende ####################
|
#################### Anpassungen Ende ####################
|
||||||
|
|
||||||
@ -94,17 +94,7 @@ if [ -x /usr/bin/dircolors ]; then
|
|||||||
#alias egrep='egrep --color=auto'
|
#alias egrep='egrep --color=auto'
|
||||||
fi
|
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 ! shopt -oq posix; then
|
||||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
. /usr/share/bash-completion/bash_completion
|
. /usr/share/bash-completion/bash_completion
|
||||||
@ -113,21 +103,21 @@ if ! shopt -oq posix; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias sshpc4='ssh alf@192.168.0.104 -i "$K_PFAD/id_lokal_chrome"'
|
# PC 77
|
||||||
alias sshpi='ssh alf@192.168.0.80 -p2222 -i $K_PFAD/id_superao'
|
#alias sshpc4='ssh alf@192.168.0.104 -i "$K_PFAD/id_lokal_chrome"'
|
||||||
alias sshmedia='ssh alf@192.168.0.10 -i $K_PFAD/id_lokal_chrome'
|
#alias sshpi='ssh alf@192.168.0.80 -p2222 -i $K_PFAD/id_superao'
|
||||||
alias sshroot='ssh root@192.168.0.42 -i $K_PFAD/id_superao'
|
#alias sshmedia='ssh alf@192.168.0.10 -i $K_PFAD/id_lokal_chrome'
|
||||||
alias spzssh='sshfs oberkoetter@alsdorf.spznord.de:/srv/ /home/alf/SPZSSH -o IdentityFile=$K_PFAD/id_superao'
|
#alias sshroot='ssh root@192.168.0.42 -i $K_PFAD/id_superao'
|
||||||
alias ls='ls -lh --color=auto '
|
#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 "
|
#alias sshh="ssh -l alf -p2222 -i $K_PFAD/id_superao "
|
||||||
|
|
||||||
|
|
||||||
####### Standard #########
|
####### Standard #########
|
||||||
alias rm='echo "Bitte del benutzen!"'
|
alias ls='ls -lhp --group-directories-first --color=auto '
|
||||||
alias ls="ls -lhp --group-directories-first --color=auto "
|
rm() { echo "Bitte del benutzen!"; }
|
||||||
alias ssher='/bin/bash $HOME/ssher.sh'
|
7z() { echo "Bitte 7zipp benutzen!"; }
|
||||||
|
# alias ssher='/bin/bash $HOME/ssher.sh'
|
||||||
alias sshlogin='/bin/bash "$GIT_PFAD/ssh-cert-login/login.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)
|
# Stellen Sie sicher, dass TRASHVERZ definiert ist (z.B. in Ihrer .bashrc)
|
||||||
|
|
||||||
@ -209,6 +199,10 @@ function purge() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function 7zipp() {
|
function 7zipp() {
|
||||||
|
if [ $1 = "l" ] then
|
||||||
|
7z l $@
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
read -p "Kompressionsstufe " KOMP
|
read -p "Kompressionsstufe " KOMP
|
||||||
7z -mhe=on -p -mx=$KOMP $@
|
7z -mhe=on -p -mx=$KOMP $@
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user