Wednesday, July 10, 2019

Re: execute an alias with vim

> I love aliases since i am a child! i am absolutely fascinated by them!
> i dream of them every night :-)

Try this alias:
alias .bashrc="vim $HOME/.bashrc; . $HOME/.bashrc"

> Hmmmm in fact aliases was the best way i found to do what i want. Just
> a ligne in ~/.bashrc, so simple. And just to type "bar" in my terminal
> to access the file.

Try this:
:new .
select and <Enter>

> So, I tried to create one file with shebang (in one directory in my
> $PATH, ~/bin is not my path).

add "$HOME/bin" into your PATH. This is the standard for your binaries.
--
Kit

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAVKVq-A%3Dkp0PzB-tOqtbn9YpnWTtTY3hTjOBDj50u99MtMfLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments: