Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.julia directory at $HOME #37503

Closed
ghost opened this issue Sep 10, 2020 · 7 comments
Closed

.julia directory at $HOME #37503

ghost opened this issue Sep 10, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Sep 10, 2020

julia should not create .juila directory at $HOME.

It should follow xdg directory guidelines.

@DilumAluthge
Copy link
Member

Duplicate of #4630

@ghost
Copy link
Author

ghost commented Sep 10, 2020

like go, julia can have a ~/.config/julia/env for storing environment variables. so we can choose which directory to use.

@fredrikekre
Copy link
Member

fredrikekre commented Sep 10, 2020

You can set JULIA_DEPOT_PATH of you are not happy with ~/.julia.

@ghost
Copy link
Author

ghost commented Sep 10, 2020

@fredrikekre thank you.

@KristofferC
Copy link
Sponsor Member

Does everything respect that? I don't think the repl log file would.

@DilumAluthge
Copy link
Member

I believe that everything respects that environment variable.

$ ls ~/.julia
ls: /Users/dilum/.julia: No such file or directory
$ ls /Users/dilum/Downloads/foo/bar
ls: /Users/dilum/Downloads/foo/bar: No such file or directory
$ export JULIA_DEPOT_PATH="/Users/dilum/Downloads/foo/bar"
$ ls ~/.julia
ls: /Users/dilum/.julia: No such file or directory
$ ls /Users/dilum/Downloads/foo/bar
ls: /Users/dilum/Downloads/foo/bar: No such file or directory
$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-DEV.878 (2020-09-09)
 _/ |\__'_|_|_|\__'_|  |  Commit 08486888ba (0 days old master)
|__/                   |

julia> 1 + 1
2

julia> exit()
$ ls ~/.julia
ls: /Users/dilum/.julia: No such file or directory
$ ls /Users/dilum/Downloads/foo/bar
logs
$ ls /Users/dilum/Downloads/foo/bar/logs
repl_history.jl
$ cat /Users/dilum/Downloads/foo/bar/logs/repl_history.jl
# time: 2020-09-10 03:29:28 EDT
# mode: julia
	1 + 1
# time: 2020-09-10 03:29:29 EDT
# mode: julia
	exit()

@KristofferC
Copy link
Sponsor Member

Yep, seems so. That's good then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants