-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update default branch to main
- Loading branch information
Showing
5 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
lint: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,47 +7,46 @@ | |
## General Information | ||
|
||
**Warning** The idea of this repository is to be a reference to others. **NEVER** run the installation script or any other script without | ||
reading it first and adjust according to your needs. This is my very personal configuration and may not be suitable for you. I highly recommend | ||
you to fork or clone and edit this repo before try it. I am not responsible for any problem it may cause to you. Use at your own risk! | ||
|
||
This script setup a MacOS (tested in Catalina 10.15.x) or a Linux (tested in Elementary OS Hera 5.1). It basically install the same softwares | ||
(if available for the OS) and do the dotfiles symlink to the home folder. Specificaly for MacOS, it also do some initial configuration like add | ||
icons to the Dock, set languages, etc. | ||
reading it first and adjust according to your needs. This is my very personal configuration and may not be suitable for you. | ||
I highly recommend you fork or clone and edit this repo before trying it. I am not responsible for any problem it may cause you. Use at your own risk! | ||
This script set up a MacOS (tested in Catalina 10.15.x) or a Linux (tested in Elementary OS Hera 5.1). | ||
It installs the same software (if available for the OS) and do the dotfiles symlink to the home folder. | ||
Specifically for MacOS, it also does some initial configuration like adding icons to the Dock, set languages, etc. | ||
|
||
## Installation | ||
|
||
### Option 1 - Install Script | ||
|
||
The first and easier option to install is just execute the line in a terminal window: | ||
|
||
`sh -c "$(curl -fsSL https://raw.githubusercontent.com/trystan2k/dotfiles/master/install.sh)"` | ||
`sh -c "$(curl -fsSL https://raw.githubusercontent.com/trystan2k/dotfiles/main/install.sh)"` | ||
|
||
This will verify any missing dependency (like Git) and install it (or ask you to install, in MacOS case), create my personal folder, clone this | ||
repository inside it and execute the bootstrap script | ||
repository inside it, and execute the bootstrap script | ||
|
||
### Option 2 - Clone repo | ||
### Option 2 - Clone the repo | ||
|
||
Other option is to manually clone this repository and execute the bootstrap script. | ||
Another option is to manually clone this repository and execute the bootstrap script. | ||
|
||
a. Clone repo: `git clone https://github.com/trystan2k/dotfiles.git` | ||
|
||
b. Go to script folders and execute bootstrap: `cd dotfiles\scripts; ./bootstrap.sh` | ||
|
||
### Option 3 - Separated steps | ||
|
||
Some of the configuration can be ran isolated. You can, for example, use the `tools.sh` script in the scripts folder to just install the | ||
Some of the configurations can be run isolated. You can, for example, use the `tools.sh` script in the scripts folder to just install the | ||
software listed there. | ||
|
||
a. Install tools: `cd dotfiles\scripts; ./tools.sh` | ||
|
||
b. Create/Recreate the symlinks to home folder: `cd dotfiles\scripts; ./symlinks.sh` | ||
b. Create/Recreate the symlinks to the home folder: `cd dotfiles\scripts; ./symlinks.sh` | ||
|
||
c. Use the Brewfile to install all tools via Brew `cd dotfiles\tools\macos|linux; brew bundle` | ||
|
||
## Post Installation | ||
|
||
Due to some limitations, some tools needs to be installed after the terminal is restarted, so it gets difficult to automatize. | ||
After the reboot of the computer (after the dotfiles install script is finished or the last step is executed and terminal restarted), execute the post-install script: | ||
Due to some limitations, some tools need to be installed after the terminal is restarted, so it gets difficult to automatize. | ||
After the reboot of the computer (after the dotfiles install script is finished or the last step is executed and the terminal restarted), execute the post-install script: | ||
|
||
`cd dotfiles\scripts; ./post-install.sh` | ||
|
||
|
@@ -58,8 +57,8 @@ After the reboot of the computer (after the dotfiles install script is finished | |
I am currently using [Hyper Terminal](https://hyper.is/). | ||
The symlink step link the `.hyper.js` file with my current configuration, themes, etc. | ||
|
||
**Theme** : [powerlevel10k theme](https://github.com/romkatv/powerlevel10k) | ||
**Fonts** : [Nerd Font](https://github.com/ryanoasis/nerd-fonts) and [Fira Code](https://github.com/tonsky/FiraCode) | ||
**Theme**: [powerlevel10k theme](https://github.com/romkatv/powerlevel10k) | ||
**Fonts**: [Nerd Font](https://github.com/ryanoasis/nerd-fonts) and [Fira Code](https://github.com/tonsky/FiraCode) | ||
|
||
### Homebrew | ||
|
||
|
@@ -72,14 +71,14 @@ I use ZSH as my current shell and to manage its plugin I am using [Zinit](https: | |
|
||
### Package Manager | ||
|
||
I am using [ASDF](https://github.com/asdf-vm/asdf) as package manager for tools like `node/npm`, `yarn`, `java`, `ruby`, etc. | ||
Some of initial configuration can be done executing the configuration script located at configure folder | ||
I am using [ASDF](https://github.com/asdf-vm/asdf) as the package manager for tools like `node/npm`, `yarn`, `java`, `ruby`, etc. | ||
Some of the initial configuration can be done by executing the configuration script located in configure folder | ||
|
||
`cd dotfiles\configure; ./asdf-plugins.sh` | ||
|
||
## Apps that needs to be installed manually | ||
## Apps that need to be installed manually | ||
|
||
## Settings that needs to be done manually | ||
## Settings that need to be done manually | ||
|
||
1. System Preferences -> Users & Groups -> Login Options => Change 'Show fast user switching menu as' to `Icon` | ||
2. System Preferences -> Security & Privacy -> General => Change 'Require password' to `5 seconds` | ||
|
@@ -106,15 +105,11 @@ Some of initial configuration can be done executing the configuration script loc | |
Paste #182E40,#1F4662,#1D425D,#FFFFFF,#988026,#FFFFFF,#2CDB00,#FEBD29 | ||
``` | ||
|
||
3. Alfred | ||
|
||
<https://github.com/wesbos/Cobalt2-Alfred-Theme/blob/master/Cobalt2-alfred3.x.alfredappearance> | ||
|
||
## Apps that are interesting but not sure if useful | ||
|
||
1. Rust Desk (<https://rustdesk.com/>) - Remote connection | ||
2. Sound Control (<https://staticz.com/soundcontrol/>) - Sound control | ||
3. ZX - (<https://github.com/google/zx>) - Allow to write shells scripts with Javascript | ||
3. ZX - (<https://github.com/google/zx>) - Allow writing shells scripts with Javascript | ||
4. Mackup (<https://github.com/lra/mackup>) - Backup of Mac | ||
5. Karabiner (<https://pqrs.org/osx/karabiner/>) - Remap keybinds | ||
6. Mosh (<https://mosh.org/>) - Mobile SSH client | ||
|
@@ -133,21 +128,21 @@ Some of initial configuration can be done executing the configuration script loc | |
|
||
Or use defined alias `fixZshPerms` | ||
|
||
2. It is possible that `colorls` Ruby Gem fail to install in a fresh installation due to folder permissions. | ||
2. It is possible that `colorls` Ruby Gem fail to install in a fresh install due to folder permissions. | ||
If that happens, just execute the ruby-gems.sh script after reboot. | ||
|
||
```bash | ||
. configure/ruby-gems.sh | ||
``` | ||
|
||
3. When use IDEs like VSCode, due to how direnv loads, the asdf tools are not loaded correctly. It this starts to happen, | ||
3. When using IDEs like VSCode, due to how direnv loads, the asdf tools are not loaded correctly. If this starts to happen, | ||
just reload direnv: | ||
|
||
```bash | ||
direnv reload | ||
``` | ||
|
||
4. When installing Ruby via ASDF in a M1 Mac, add this to .exports.local file | ||
4. When installing Ruby via ASDF in an M1 Mac, add this to .exports.local file | ||
|
||
```bash | ||
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix [email protected])" | ||
|
@@ -162,13 +157,13 @@ just reload direnv: | |
|
||
## Thanks to | ||
|
||
This repo was based in the | [Mathias Bynens](https://mathiasbynens.be/) | one (<https://github.com/mathiasbynens/dotfiles).> I had remove some | ||
setup I do not need and add some I found over internet. | ||
This repo was based on the | [Mathias Bynens](https://mathiasbynens.be/) | one (<https://github.com/mathiasbynens/dotfiles).> | ||
I had remove some setup I do not need and added some I found over the internet. | ||
|
||
The unassisted install script was based in the | [Mohammed Ajmal Siddiqui](https://github.com/ajmalsiddiqui/dotfiles) | one. I had added some | ||
The unassisted install script was based on the | [Mohammed Ajmal Siddiqui](https://github.com/ajmalsiddiqui/dotfiles) | one. I added some | ||
tools I used and remove some I don't. | ||
The idea to split tools into separated files was inspired by | [Zach Holman](https://github.com/holman/dotfiles) |, which later was replaced | ||
The idea to split tools into separate files was inspired by | [Zach Holman](https://github.com/holman/dotfiles) |, which later was replaced | ||
by Brewfile usage. | ||
And many other folks that is always available to help in GitHub Issue, StackOverFlow questions, blog articles and sharing Gists with examples. | ||
And many other folks that are always available to help with GitHub Issue, StackOverFlow questions, blog articles, and sharing Gists with examples. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters