Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
prefix=${HOME}/.npm-packages
save-exact=true
init-author-email=${USER_EMAIL}
init-author-name=${USER_NAME}
init-author-email=${USER_EMAIL} # set value USER_EMAIL in .zshrc
init-author-name=${USER_NAME} # set value USER_NAME in .zshrc
init-license=MIT
scope=${NPM_SCOPE}
loglevel=warning
${NPM_SCOPE}:registry=https://registry.npmjs.org/
scope=@${NPM_SCOPE} # set value NPM_SCOPE in .zshrc
loglevel=notice
registry=https://registry.npmjs.org/
npm.pkg.github.com/:_authToken=${GH_TOKEN} # set value GH_TOKEN in .zshrc
35 changes: 9 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,52 +14,35 @@ This repo is 100% open for you to explore and customize. Just clone it and swap
1. Clone this repository to your local machine:

```bash
git clone https://github.com/tcelestino/dotfiles.git ~/.dotfiles
git clone git@github.com:tcelestino/dotfiles.git
```

2. Set run file to install
2. Open folder `dotfiles` and set run file to install

```bash
cd ~/.dotfiles && chmod +x install
chmod +x install
```
3. Open `.zshrc` file and change variables "USER_NAME", "USER_EMAIL" and "NPM_SCOPE". You might set `GH_TOKEN` and `NPM_TOKEN` too.

3. Install
```bash

4. Run the install script

```bash
./install
```
⚠️ **Don't forget to set values `GH_TOKEN` and `NPM_TOKEN`!!**

## Additional Configurations

- To set the keyboard layout to include the 'ç' character on Ubuntu, follow the steps in the article "[Ajeitando o cedilha errado (ć) no Ubuntu Linux](https://www.danielkossmann.com/pt/ajeitando-cedilha-errado-ubuntu-linux/)"
- Import the color scheme and other configurations into iTerm2. The settings can be found in the "iterm2" folder.
- If you use iTerm2, you might import the color scheme and other configurations into iTerm2. The settings can be found in the "iterm2" folder.

## Contributing

If you have any suggestions, improvements, or bug fixes, feel free to open an issue or submit a pull request. I'm always looking for ways to improve my configurations and make them more efficient and user-friendly. Read the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.

This project follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. Please use it when making changes to the codebase.

- 🚀 Features: `feat: feature description`
- 🐛 Bug Fixes: `fix: bug fix description`
- 📝 Documentation: `docs: description of the change`
- ⚡️ Performance: `perf: description of the improvement`
- ♻️ Refactoring: `refactor: description of the change`
- 🎨 Style: `style: description of the change`
- ✅ Tests: `test: description of the test`
- 📦 Dependencies: `chore(deps): description of the update`
- 🛠 Chores: `chore: description of the task`

For breaking changes, add `!` after the type or include `BREAKING CHANGE:` in the commit body:
```bash
# Using ! after the type
feat!: change that breaks compatibility

# Or using BREAKING CHANGE in the body
feat: change that breaks compatibility

BREAKING CHANGE: detailed description of the breaking change
```

## License
See in [LICENSE](LICENSE).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 4 additions & 13 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ error() {
# command -v git >/dev/null 2>&1 || error "Git is required but not installed. https://git-scm.com/downloads"
# }

# This is the default variable to set your information. You can override these values by exporting them in your shell.
export_user_info() {
export USER_NAME="Your Name"
export USER_EMAIL="your.email@example.com"
export NPM_SCOPE="@your_username"
}

# Create a symbolic link, removing existing file/link if necessary
# @param $1 Source file path
# @param $2 Destination link path
Expand Down Expand Up @@ -164,15 +157,15 @@ setup_fonts() {
mkdir -p "$font_dir"
fi
log "Installing fonts for macOS..."
cp "$DIR/fonts/"* "$font_dir/"
cp "$DIR/extras/fonts/"* "$font_dir/"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Ubuntu/Linux
local font_dir="$HOME/.local/share/fonts"
if [ ! -d "$font_dir" ]; then
mkdir -p "$font_dir"
fi
log "Installing fonts for Linux..."
cp "$DIR/fonts/"* "$font_dir/"
cp "$DIR/extras/fonts/"* "$font_dir/"
fc-cache -f -v
else
error "Unsupported operating system"
Expand All @@ -191,15 +184,13 @@ setup_macos() {
main() {
log "Starting installation from $DIR..."

export_user_info

install_brew
install_oh_my_zsh
install_brew
install_deno

setup_zsh
setup_brew
setup_git
setup_zsh
setup_npm
setup_macos
setup_fonts
Expand Down
10 changes: 7 additions & 3 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ZSH_THEME="dracula"

plugins=(alias-finder brew copypath copyfile deno dotenv docker docker-compose extract history iterm2 git macos npm python vscode web-search yarn, custom-functions)


# global
export JAVA_HOME="$(/usr/libexec/java_home -v 1.$JAVA_VERSION)"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Expand All @@ -16,10 +17,13 @@ export PATH="/usr/local/bin:$PATH" # brew on Intel
export NPM_PACKAGES="${HOME}/.npm-packages"
export PATH="$NPM_PACKAGES/bin:$PATH"
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
export GH_TOKEN="YOUR GITHUB TOKEN"
export NPM_TOKEN="YOUR NPM TOKEN"
export GH_TOKEN="<YOUR GITHUB TOKEN>" # create token at https://github.com/settings/apps select "Personal access tokens"
export NPM_TOKEN="<YOUR NPM TOKEN>"
export NODE_ENV="development"
export SSH_KEY_PATH="~/.ssh/id_ed" # cat ~/.ssh/id_ed
export SSH_KEY_PATH="~/.ssh/id_ed" # set your ssh key path
export USER_NAME="<YOUR_NAME>"
export USER_EMAIL="<YOUR_EMAIL>"
export NPM_SCOPE=${USER:-your_username} # e.g. tcelestino

# preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
Expand Down