https://github.com/michaeljymsgutierrez/bashrc-cg
Shell Profile and Vim/NVim Configurations
https://github.com/michaeljymsgutierrez/bashrc-cg
lua neovim scripts shellscript tmux vim
Last synced: 30 days ago
JSON representation
Shell Profile and Vim/NVim Configurations
- Host: GitHub
- URL: https://github.com/michaeljymsgutierrez/bashrc-cg
- Owner: michaeljymsgutierrez
- Created: 2019-02-10T09:56:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-07T06:36:57.000Z (over 1 year ago)
- Last Synced: 2025-02-07T07:24:17.300Z (over 1 year ago)
- Topics: lua, neovim, scripts, shellscript, tmux, vim
- Language: Vim Script
- Homepage:
- Size: 372 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Prerequisites
- **Git:** You'll need Git for version control. You can find installation instructions on the official Git website: [https://git-scm.com/downloads](https://git-scm.com/downloads)
- **Terminal Shell:** This guide uses **Zsh**, which is the default shell on macOS.
- **Homebrew:** This is the package manager for macOS. If you don't have it installed, you can get it from the official Homebrew website: [https://brew.sh/](https://brew.sh/)
---
## Installation
First, use Homebrew to install the necessary command-line tools:
```bash
brew install nvim tmux ripgrep ghostty
```
---
## Configuration
These steps will configure your Zsh, Ghostty, Neovim, and Tmux environments.
### 1\. Clone the Configuration Repository
Navigate to your home directory and clone the configuration repository:
```bash
cd ~/ && git clone git@github.com:michaeljymsgutierrez/bashrc-cg.git
```
### 2\. Install fzf (Optional but Recommended)
**fzf** is a fuzzy finder that helps you quickly search for files and commands. Install it with the following commands:
```bash
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
```
### 3\. Configure Zsh
Add the following lines to your `~/.zshrc` file to load the custom configurations for your command-line environment:
```bash
source ~/bashrc-cg/path.cgf
source ~/bashrc-cg/prompt.cgf
source ~/bashrc-cg/alias.cgf
```
### 4\. Configure Ghostty
Add this line to your `~/.config/ghostty/config` file to load the custom Ghostty configuration:
```bash
config-file = "~/bashrc-cg/ghostty.cgf"
```
### 5\. Configure Neovim
Add the following lines to your `~/.config/nvim/init.lua` file to set up Neovim:
```lua
local homeDirectory = os.getenv('HOME') .. '/bashrc-cg/nvim-cgf.lua'
local initNvimConfig = loadfile(homeDirectory)
initNvimConfig()
```
### 6\. Configure Tmux
Add this line to your `~/.tmux.conf` file to load the custom Tmux configuration:
```bash
source ~/bashrc-cg/tmux.cgf
```
### 7\. Configure Prettier
Execute the following command to install the Prettier configuration:
```bash
cat ~/bashrc-cg/prettier.cgf > ~/.prettierrc
```
---
## Finalize and Restart
After making all these changes, restart your terminal or run the commands below to apply the new configurations:
```bash
source ~/.zshrc # Applies Zsh configuration
nvim # Starts Neovim
```