From 2f9392400585303d0796389b2e421803887e52b8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 22 Mar 2022 15:09:52 +0200 Subject: Reworked v alias to a funciton --- .zshrc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index a4311da..3a12f11 100644 --- a/.zshrc +++ b/.zshrc @@ -338,7 +338,6 @@ device="desktop" # can be either "desktop" (default when empty), "server" or "an alias combinepdf="gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=temp.pdf" alias lg="lazygit" - alias v="vim" alias ydl="youtube-dl -o '%(title)s.%(ext)s'" alias ydlba="youtube-dl -o '%(title)s.%(ext)s' --audio-format best -x" @@ -381,13 +380,13 @@ device="desktop" # can be either "desktop" (default when empty), "server" or "an if [[ device != "server" && device != "android" ]]; then - if [[ -x "$(command -v vimx)" ]]; then + if [[ -x "$(command -v vim)" ]]; then # Open vim with .vim-session file, if it exists and the vim command doesn't have any parameters - vim () { + v () { if [ -f ".vim-session" ] && [ -z "$1" ]; then - vimx -S .vim-session + vim -S .vim-session else - vimx $@ + vim $@ fi } fi -- cgit v1.2.3