[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vile] I can't get VILE_STARTUP_PATH to do what I expected it to do
From: |
Thomas Dickey |
Subject: |
Re: [vile] I can't get VILE_STARTUP_PATH to do what I expected it to do |
Date: |
Wed, 1 Jun 2016 19:38:22 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jun 02, 2016 at 01:05:54AM +0200, Gary Jennejohn wrote:
> On Wed, 1 Jun 2016 21:23:35 +0100
> Chris Green <address@hidden> wrote:
>
> > I want to change the location of my .vilerc startup file (to $HOME/bin
> > rather than $HOME).
> >
> > So I set VILE_STARTUP_PATH to $HOME/bin and moved .vilerc to $HOME/bin
> > but it doesn't appear to work. I've checked the environment:-
> >
> > chris$ env | grep VILE
> > VILE_STARTUP_PATH=/home/chris/bin
> >
> > This is on linux (xubuntu). Does setting VILE_STARTUP_PATH not
> > override the compiled in value?
> >
> > I guess I can use 'source /home/chris/bin/.vilerc' in a VILEINIT
> > variable instead.
> >
>
> This is all explained in the Invocation section of the vile :help
> file. VILE_STARTUP_PATH must be set in the confguration at compile
> time.
It's more flexible than that - VILE_STARTUP_PATH is an environment
variable which overrides the compiled-in default for $startup-path
However, there are other things in the path, which you can see using
2:which-source .vilerc
for example:
--------------------------------------------------------------------------------
Show which source-paths are tested for:
.vilerc
("*" marks found-files)
$cwd
.vilerc
$HOME
* /users/tom/.vilerc
$startup-path
* /users/tom/bin/.vilerc
/usr/share/vile/.vilerc
--------------------------------------------------------------------------------
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature