From 93634f230c7f3d76459c88e5a0a62d766be465b0 Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Fri, 10 Feb 2023 12:50:42 +0100 Subject: [PATCH] Added some zsh aliases for emacs/git Signed-off-by: TuDatTr --- zsh/.zshrc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 5d8a80c..f0ff293 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -28,17 +28,19 @@ alias ed="\emacs --daemon" alias e="open_emacs" alias df="df -h" alias picpaste="xclip -selection clipboard -t image/png -o" -alias eledger="e ~/Documents/Finanzen/Ledger/MyBudget.ledger" -alias sshconfig="e ~/.ssh/config" -alias econfig="e ~/.doom.d/init.el" +alias eledger="emacsclient -nw ~/Documents/Finanzen/Ledger/MyBudget.ledger" +alias sshconfig="emacsclient -nw ~/.ssh/config" +alias econfig="emacsclient -nw ~/.doom.d/init.el" alias wttr="curl wttr.in/Essen" alias tvres="xrandr --output HDMI1 --transform 1.02,0,-20,0,1.02,-10,0,0,1" alias defaultres="xrandr --output HDMI1 --transform 1.00,0,0,0,1.00,0,0,0,1" -alias zshconfig="e ~/.zshrc; source ~/.zshrc;" +alias zshconfig="emacsclient -vw ~/.zshrc; source ~/.zshrc;" alias notify="dunstify \"ping~\"" alias ekill="pkill emacs; pkill emacsclient; ed" alias latexmk="latexmk -f -pdf -interaction=nonstopmode" alias picotik="picocom --b 115200 /dev/ttyUSB0" +## git +alias gps="git push soft --all" # Theme ZSH_THEME="agnoster" @@ -55,4 +57,5 @@ randpw() { < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-$1};echo;}; # Source source $ZSH/oh-my-zsh.sh +gras() { git remote add soft ssh://git.aya01:/$1 } open_emacs() { emacsclient -c $1 & disown; };