From 0fa8640c8fae918f2f23564a1f5559bfc976420a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Fri, 15 Mar 2024 18:48:32 +0100 Subject: [PATCH] Add s --- zsh/.zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index b0ee51f..e4364b5 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -176,6 +176,10 @@ function o () { xdg-open "$1" &! } +function s() { + ssh server@mallorea -t "cd \"$(pwd)\" ; zsh --login" +} + if [ "$SSH_CLIENT" ] then 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 python=python3 alias r=". ranger" -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 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 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 push="git add -A && git commit -m '`date`' && git push"