symlink

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSymlink(target string) (backupPath string, err error)

CreateSymlink creates a symlink from ~/.config/starship.toml to the target file. If an original (non-symlink) starship.toml exists, it's backed up first. Returns the backup path if a backup was created (empty string if no backup was needed).

Uses atomic symlink replacement (temp-then-rename) to prevent data loss: If symlink creation fails, the original config remains intact.

func GetCurrentTarget

func GetCurrentTarget() (string, error)

func StarshipConfigPath

func StarshipConfigPath() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL