Linux command
fresh 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Build shell configuration
fresh
Update all sources
fresh update
Update only local dotfiles
fresh update --local
Update a specific GitHub user's
fresh update [username]
Search the fresh directory
fresh search [keyword]
Edit your freshrc
fresh edit
Remove dead symlinks
fresh clean
Show source references
fresh show
说明
fresh is a dotfiles manager that works like Bundler for your shell configuration. It aggregates aliases, functions, completions, and configuration files from your own dotfiles and from other users' GitHub repositories into a single built shell script and a set of symlinks. Configuration is defined in ~/.freshrc using a simple DSL. Each line specifies a source file to include, optionally from a GitHub repository. When fresh runs, it concatenates all shell sources into ~/.fresh/build/shell.sh and creates symlinks for non-shell config files. You source the built file from your shell rc to activate everything. Fresh supports three types of sourced content: shell files (concatenated into the build script), config files (symlinked via --file), and bin files (made executable via --bin).
参数
- install
- Build shell configuration and create symlinks. This is the default when no command is given.
- update _filter_
- Fetch latest changes from source repositories and rebuild. Optionally filter by --local, a GitHub _username_, or _username/repo_.
- clean
- Remove dead symlinks and unused source repositories.
- search _keyword_
- Query the fresh directory wiki for configuration examples matching _keyword_.
- edit
- Open ~/.freshrc in your default $EDITOR.
- show
- Display freshrc lines with their matching source files.
- help
- Show usage documentation.
FAQ
What is the fresh command used for?
fresh is a dotfiles manager that works like Bundler for your shell configuration. It aggregates aliases, functions, completions, and configuration files from your own dotfiles and from other users' GitHub repositories into a single built shell script and a set of symlinks. Configuration is defined in ~/.freshrc using a simple DSL. Each line specifies a source file to include, optionally from a GitHub repository. When fresh runs, it concatenates all shell sources into ~/.fresh/build/shell.sh and creates symlinks for non-shell config files. You source the built file from your shell rc to activate everything. Fresh supports three types of sourced content: shell files (concatenated into the build script), config files (symlinked via --file), and bin files (made executable via --bin).
How do I run a basic fresh example?
Run `fresh` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does install do in fresh?
Build shell configuration and create symlinks. This is the default when no command is given.