9/26/2023 0 Comments Msys2 fish shellIn that case consider disabling XDG support. stack/cabal/ghc into it, this will likely clash. Note that ghcup makes some assumptions about structure of files in XDG_BIN_HOME. XDG_CONFIG_HOME: the config file is stored in ghcup subdir as config.yaml (default: ~/.config).XDG_BIN_HOME: binaries end up here (default: ~/.local/bin).XDG_CACHE_HOME: logs and download files will be stored in ghcup subdir (default: ~/.cache).XDG_DATA_HOME: GHCs will be unpacked in ghcup/ghc subdir (default: ~/.local/share).Then you can control the locations via XDG environment variables as such: To enable XDG style directories, set the environment variable GHCUP_USE_XDG_DIRS to anything. GHCup bootstrap takes care of this usually. GHCUP_MSYS2: Has to point to the root of an existing MSYS2 installation (when installed by GHCup, that's e.g.CC/ LD etc.: full environment is passed to the build system when compiling GHC via GHCup.GHCUP_SKIP_UPDATE_CHECK: Skip the (possibly annoying) update check when you run a command.GHCUP_GPG_OPTS: additional options that can be passed to gpg.GHCUP_WGET_OPTS: additional options that can be passed to wget.GHCUP_CURL_OPTS: additional options that can be passed to curl.GHCUP_INSTALL_BASE_PREFIX: the base of ghcup (default: $HOME).GHCUP_USE_XDG_DIRS: see XDG support above.This is the complete list of env variables that change GHCup behavior: an Ubuntu derivate based on 18.04 and ghcup is picking bindists thatĭon't work well, you could do this in config.yaml: platform-override: Command line options always override the config file settings. The default config fileĮxplaining all possible configurations can be found in this repo: config.yaml. legacy subcommands ghcup install (without a tool identifier) and ghcup install-cabal may be removed in the futureĪ configuration file can be put in ~/.ghcup/config.yaml.ghcup tui is only available on non-windows platforms.( /usr/share/bash-completion/bash_completion on some distros). etc/bash_completion.d/ghcup (depending on distro)Īnd make sure your bashrc sources the startup script Shell completions are in scripts/shell-completions directory of this repository.Īs e.g. Manpages only work for the currently set ghc. Manpages įor man pages to work you need man-db as your man provider, then issue man ghc. If the argument is omitted, the default is recommended. GHCup has a number of tags and version shortcuts, that can be used as arguments to install/ set etc.Īll of the following are valid arguments to ghcup install ghc: Basic usage įor the simple, interactive, text-based user interface (TUI) (not available on windows), run: ghcup tuiįor the full functionality via cli: # list available ghc/cabal versions This is a more in-depth guide specific to GHCup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |