config

Manage fortsh configuration files.

Source: src/execution/builtins.f90:1468-1491, src/scripting/config.f90

Synopsis

config [show | create | reload]

Description

View, create, or reload the shell's configuration files (~/.fortshrc, ~/.fortsh_profile, ~/.fortsh_logout).

Subcommands

SubcommandDescription
(none)Show current configuration file contents
showSame as above
createCreate default config files (skips any that already exist)
reloadRe-read configuration files for the current shell type

Usage

# View your current config
config show

# Create default config files
config create
# Created ~/.fortshrc
# Created ~/.fortsh_profile
# Created ~/.fortsh_logout

# Reload after editing
config reload

Default Config

config create generates a ~/.fortshrc with a default prompt, common aliases, and shell option comments as a starting point.

Exit Status

StatusCondition
0Success
1Unknown subcommand

See Also