Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexzhang1030/dotfiles
my custom dotfiles
https://github.com/alexzhang1030/dotfiles
Last synced: 7 days ago
JSON representation
my custom dotfiles
- Host: GitHub
- URL: https://github.com/alexzhang1030/dotfiles
- Owner: alexzhang1030
- Created: 2022-11-24T06:21:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T03:23:50.000Z (4 months ago)
- Last Synced: 2024-08-01T05:52:57.708Z (4 months ago)
- Language: Shell
- Size: 149 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
My custom dotfiles powered by [RCM](https://github.com/thoughtbot/rcm).
## Manual
- `mkrc [-t] <[file|dir]-path>`: move to `~/.dotfiles` dir and create a symbolic to current
- `lsrc`: list all hosting dotfiles
- `rcup [-t ]`: deploy dotfiles## Notes
### `zsh_functions`
You can add custom functions to `zsh_functions` directory and it will be loaded automatically.
The autoload code is in `zshrc` file.
```sh
# custom functions
function load_fns() {
function_dir="$HOME/.zsh_functions"
fpath=($function_dir $fpath)
for function_file in $function_dir/*; do
function_name=$(basename $function_file)
autoload -Uz $function_name
done
}
load_fns```
You can use functions like this:
```sh
# note the function name must be the same with file name
alias gcl='git_clean_current_branch'
```