add alias removeknowhost
This commit is contained in:
parent
351c30dd82
commit
fde2af0e02
@ -41,12 +41,6 @@ alias cleaner='filebot -script fn:cleaner .'
|
|||||||
#synchro music directory for laptop
|
#synchro music directory for laptop
|
||||||
alias update-music-folder='rsync-update /mnt/diskstation/music/ ~/Music/'
|
alias update-music-folder='rsync-update /mnt/diskstation/music/ ~/Music/'
|
||||||
|
|
||||||
#alias cache pacman
|
|
||||||
function syncpacmancache (){
|
|
||||||
sudo rsync -avzu --progress -h vincent@$1:/var/cache/pacman/pkg/ /var/cache/pacman/pkg/
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
alias pacmanclean='sudo paccache -r &&sudo paccache -ruk0'
|
alias pacmanclean='sudo paccache -r &&sudo paccache -ruk0'
|
||||||
alias yayupgrade='yay -Sy &&yay -Qu &&yay -Syu'
|
alias yayupgrade='yay -Sy &&yay -Qu &&yay -Syu'
|
||||||
|
|
||||||
@ -80,3 +74,10 @@ alias exitTmux='tmux detach -P'
|
|||||||
# open a session bitwarden
|
# open a session bitwarden
|
||||||
alias bwsession='export BW_SESSION="$(bw unlock --raw)"'
|
alias bwsession='export BW_SESSION="$(bw unlock --raw)"'
|
||||||
|
|
||||||
|
# revove entry from knowhost
|
||||||
|
|
||||||
|
function removeknowhost (){
|
||||||
|
if [ -n "$1" ]; then
|
||||||
|
sed -i "/^$1/d" ~/.ssh/known_hosts
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user