diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2022-03-22 15:09:52 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2022-03-22 15:09:52 +0200 |
| commit | 2f9392400585303d0796389b2e421803887e52b8 (patch) | |
| tree | 505e5595a2f23060a60d6ff17e7904acb6d03892 | |
| parent | 1c5432caa9729e37379df72342e1b1e34a9b1d9e (diff) | |
| download | dotfiles-2f9392400585303d0796389b2e421803887e52b8.tar dotfiles-2f9392400585303d0796389b2e421803887e52b8.tar.gz dotfiles-2f9392400585303d0796389b2e421803887e52b8.zip | |
Reworked v alias to a funciton
| -rw-r--r-- | .zshrc | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |
