This commit is contained in:
Thomas Avé 2024-03-15 18:48:32 +01:00
parent 6d11fedfb9
commit 0fa8640c8f
1 changed files with 6 additions and 2 deletions

View File

@ -176,6 +176,10 @@ function o () {
xdg-open "$1" &! xdg-open "$1" &!
} }
function s() {
ssh server@mallorea -t "cd \"$(pwd)\" ; zsh --login"
}
if [ "$SSH_CLIENT" ] if [ "$SSH_CLIENT" ]
then then
source_port=$(echo $SSH_CLIENT | awk '{ print $2 }') source_port=$(echo $SSH_CLIENT | awk '{ print $2 }')
@ -202,8 +206,8 @@ alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts"
alias xbindkeys="xbindkeys -f $XDG_CONFIG_HOME/xbindkeys/config" alias xbindkeys="xbindkeys -f $XDG_CONFIG_HOME/xbindkeys/config"
alias python=python3 alias python=python3
alias r=". ranger" alias r=". ranger"
alias cpr=rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 alias cpr="rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1"
alias mvr=rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 --remove-source-files alias mvr="rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 --remove-source-files"
alias rg="rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'" alias rg="rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'"
alias ag="rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'" alias ag="rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'"
alias push="git add -A && git commit -m '`date`' && git push" alias push="git add -A && git commit -m '`date`' && git push"