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

precmd overwritten #3849

Closed
cuihtlauac opened this issue May 27, 2019 · 3 comments
Closed

precmd overwritten #3849

cuihtlauac opened this issue May 27, 2019 · 3 comments

Comments

@cuihtlauac
Copy link

File ~/.opam/opam-init/env_hook.csh overwrites precmd alias, disregarding previously set value. Workaround:

#alias precmd 'eval `opam env --shell=csh --readonly`'

Doesn't feel like a future-proof solution. Any clues?

~>opam --version
2.0.4
~>opam config report
# opam config report
# opam-version      2.0.4 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=ubuntu os-version=18.04
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              4
# repositories      1 (http) (default repo at a28553e4)
# pinned            0
# current-switch    4.07.1
[WARNING] PATH contains '.' : this is a likely cause of trouble.
@AltGr
Copy link
Member

AltGr commented May 29, 2019

This is a problem specific to csh, the other supported shells have proper handling for adding to precmd. I am open to solutions for csh ! If there are none, we might add a warning for csh users before defining the shell hook...

@rjbou
Copy link
Collaborator

rjbou commented Mar 10, 2020

Any csh user hint ?

@dra27
Copy link
Member

dra27 commented Jul 16, 2021

PRs for this would be welcomed, but we don't have the csh expertise to be able to make progress with it!

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

No branches or pull requests

4 participants