mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
Added neogit keybindings to which-key
This commit is contained in:
12
Makefile
12
Makefile
@@ -9,6 +9,16 @@ bootsrap-brews:
|
|||||||
--debug \
|
--debug \
|
||||||
--file "$(PWD)/macOS/.config/macOS/Brewfile"
|
--file "$(PWD)/macOS/.config/macOS/Brewfile"
|
||||||
|
|
||||||
|
bootstrap-logitech:
|
||||||
|
@curl \
|
||||||
|
--output ~/Downloads/logi-options.zip \
|
||||||
|
https://download01.logi.com/web/ftp/pub/techsupport/options/options_installer.zip
|
||||||
|
|
||||||
|
bootstrap-amazon-workdocs:
|
||||||
|
@curl \
|
||||||
|
--output ~/Downloads/AmazonWorkDocsDrive.pkg \
|
||||||
|
https://d3f2hupz96ggz3.cloudfront.net/mac/AmazonWorkDocsDrive.pkg
|
||||||
|
|
||||||
bootstrap-app-store:
|
bootstrap-app-store:
|
||||||
@brew bundle \
|
@brew bundle \
|
||||||
--no-lock \
|
--no-lock \
|
||||||
@@ -20,4 +30,4 @@ stow:
|
|||||||
@stow --stow --verbose --target ~ */
|
@stow --stow --verbose --target ~ */
|
||||||
|
|
||||||
# Order matters, need to install home-brew first then formula
|
# Order matters, need to install home-brew first then formula
|
||||||
bootstrap: bootstrap-homebrew bootstrap-brews stow bootstrap-app-store
|
bootstrap: bootstrap-homebrew bootstrap-brews stow bootstrap-logitech bootstrap-amazon-workdocs bootstrap-app-store
|
||||||
|
|||||||
101
README.md
101
README.md
@@ -1,3 +1,104 @@
|
|||||||
# My Dotfiles
|
# My Dotfiles
|
||||||
|
|
||||||
This is my repository for learning dotfiles.
|
This is my repository for learning dotfiles.
|
||||||
|
|
||||||
|
It currently will install homebrew and the following homebrew formula.
|
||||||
|
|
||||||
|
```
|
||||||
|
fd
|
||||||
|
git
|
||||||
|
mas
|
||||||
|
neovim
|
||||||
|
node
|
||||||
|
ripgrep
|
||||||
|
stow
|
||||||
|
swift-format
|
||||||
|
zsh
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
It will also install the following homebrew casks in the `~/Applications` directory.
|
||||||
|
|
||||||
|
```
|
||||||
|
docker
|
||||||
|
google-chrome
|
||||||
|
iterm2
|
||||||
|
microsoft-teams
|
||||||
|
obs
|
||||||
|
paw
|
||||||
|
sketchup-pro
|
||||||
|
```
|
||||||
|
|
||||||
|
And the following fonts.
|
||||||
|
|
||||||
|
```
|
||||||
|
font-inconsolata-nerd-font
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
The following applications will be installed from the macOS app store.
|
||||||
|
|
||||||
|
```
|
||||||
|
pwSafe
|
||||||
|
Xcode
|
||||||
|
```
|
||||||
|
|
||||||
|
The following non-app-store applications will be downloaded for later installation / setup. These will be placed in `~/Downloads`
|
||||||
|
|
||||||
|
```
|
||||||
|
Logi Options # logitech mouse / keyboard settings
|
||||||
|
AmazonWorkDocsDrive
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Clone the repository.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://m-housh/dotfiles.git ~/.dotfiles && \
|
||||||
|
cd ~/.dotfiles
|
||||||
|
```
|
||||||
|
|
||||||
|
The Makefile includes commands to install dependencies andlink the configuration using `gnu-stow`.
|
||||||
|
|
||||||
|
On a fresh system run the following command from the dotfiles root.
|
||||||
|
|
||||||
|
```
|
||||||
|
make bootstrap
|
||||||
|
```
|
||||||
|
|
||||||
|
This start by installing homebrew, then install the required homebrew formulas and casks. Next it will use `gnu-stow` to symlink configuration files to the appropriate locations. And finally, it will download applications from the `App Store`.
|
||||||
|
|
||||||
|
After everything has finished up, you will be able to open `iTerm2` and load the profile which should now be symlinked to `~/.config/macOS/iterm/profile.json`
|
||||||
|
|
||||||
|
## Make commands
|
||||||
|
|
||||||
|
It is also possible to not do the full bootstrapping. If you would only like to install homebrew (without any formula or casks) then you can run the following command.
|
||||||
|
|
||||||
|
```
|
||||||
|
make bootstrap-homebrew
|
||||||
|
```
|
||||||
|
|
||||||
|
Once homebrew is installed, if you'd like to install the homebrew formula and casks (located in `macOS/.config/macOS/Brewfile`) then you can run the following command.
|
||||||
|
|
||||||
|
```
|
||||||
|
make bootstrap-brews
|
||||||
|
```
|
||||||
|
|
||||||
|
To symlink the configuration files only then you can run.
|
||||||
|
|
||||||
|
```
|
||||||
|
make stow
|
||||||
|
```
|
||||||
|
|
||||||
|
To download the logitech options application and place in your `~/Downloads` folder, you can run.
|
||||||
|
|
||||||
|
```
|
||||||
|
make bootstrap-logitech
|
||||||
|
```
|
||||||
|
|
||||||
|
And finally to download the app store applications run.
|
||||||
|
|
||||||
|
```
|
||||||
|
make bootstrap-app-store
|
||||||
|
```
|
||||||
|
|||||||
@@ -20,8 +20,10 @@ brew "zsh"
|
|||||||
cask "docker"
|
cask "docker"
|
||||||
cask "google-chrome"
|
cask "google-chrome"
|
||||||
cask "iterm2"
|
cask "iterm2"
|
||||||
|
cask "obs"
|
||||||
cask "paw"
|
cask "paw"
|
||||||
#cask "sketchup-pro"
|
cask "sketchup-pro"
|
||||||
|
cask "microsoft-teams"
|
||||||
|
|
||||||
# fonts
|
# fonts
|
||||||
cask "font-inconsolata-nerd-font"
|
cask "font-inconsolata-nerd-font"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ local neogit = require('neogit')
|
|||||||
neogit.setup {
|
neogit.setup {
|
||||||
disable_signs = false,
|
disable_signs = false,
|
||||||
disable_context_highlighting = false,
|
disable_context_highlighting = false,
|
||||||
disable_commit_confirmation = false,
|
disable_commit_confirmation = true,
|
||||||
-- customize displayed signs
|
-- customize displayed signs
|
||||||
signs = {
|
signs = {
|
||||||
-- { CLOSED, OPENED }
|
-- { CLOSED, OPENED }
|
||||||
@@ -20,10 +20,10 @@ disable_signs = false,
|
|||||||
-- modify status buffer mappings
|
-- modify status buffer mappings
|
||||||
status = {
|
status = {
|
||||||
-- Adds a mapping with "B" as key that does the "BranchPopup" command
|
-- Adds a mapping with "B" as key that does the "BranchPopup" command
|
||||||
-- ["B"] = "BranchPopup",
|
["B"] = "BranchPopup",
|
||||||
-- ["C"] = "CommitPopup",
|
["C"] = "CommitPopup",
|
||||||
-- ["P"] = "PullPopup",
|
-- ["P"] = "PullPopup",
|
||||||
-- ["S"] = "Stage",
|
["S"] = "Stage",
|
||||||
-- ["D"] = "Discard",
|
-- ["D"] = "Discard",
|
||||||
-- Removes the default mapping of "s"
|
-- Removes the default mapping of "s"
|
||||||
-- ["s"] = "",
|
-- ["s"] = "",
|
||||||
|
|||||||
@@ -90,6 +90,11 @@ wk.register({
|
|||||||
"Find buffer"
|
"Find buffer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
g = {
|
||||||
|
name = "Git",
|
||||||
|
c = { "<cmd>Neogit Commit<cr>", "Git Commit" },
|
||||||
|
g = { "<cmd>Neogit<cr>", "Open NeoGit" }
|
||||||
|
},
|
||||||
f = {
|
f = {
|
||||||
name = "File",
|
name = "File",
|
||||||
f = { "<cmd>Telescope find_files<cr>", "Find File" },
|
f = { "<cmd>Telescope find_files<cr>", "Find File" },
|
||||||
|
|||||||
Reference in New Issue
Block a user