mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nix): migrate gh and extensions
This commit is contained in:
@@ -5,14 +5,12 @@
|
|||||||
- clean: ["~"]
|
- clean: ["~"]
|
||||||
|
|
||||||
- create:
|
- create:
|
||||||
- ~/.config/gh
|
|
||||||
- ~/.config/gh-dash
|
- ~/.config/gh-dash
|
||||||
- ~/.config/tmux
|
- ~/.config/tmux
|
||||||
|
|
||||||
- link:
|
- link:
|
||||||
~/.config/fish: fish
|
~/.config/fish: fish
|
||||||
~/.config/gh-dash/config.yml: github/gh-dash/config.yml
|
~/.config/gh-dash/config.yml: github/gh-dash/config.yml
|
||||||
~/.config/gh/config.yml: github/gh/config.yml
|
|
||||||
~/.config/nvim: nvim
|
~/.config/nvim: nvim
|
||||||
~/.config/starship.toml: prompt/starship.toml
|
~/.config/starship.toml: prompt/starship.toml
|
||||||
~/.config/tmux/tmux-nerd-font-window-name.yml: tmux/tmux-nerd-font-window-name.yml
|
~/.config/tmux/tmux-nerd-font-window-name.yml: tmux/tmux-nerd-font-window-name.yml
|
||||||
|
|||||||
2
Brewfile
2
Brewfile
@@ -157,8 +157,6 @@ brew "fish"
|
|||||||
brew "fzf"
|
brew "fzf"
|
||||||
# Graphics library to dynamically manipulate images
|
# Graphics library to dynamically manipulate images
|
||||||
brew "gd"
|
brew "gd"
|
||||||
# GitHub command-line tool
|
|
||||||
brew "gh"
|
|
||||||
# Distributed revision control system
|
# Distributed revision control system
|
||||||
brew "git"
|
brew "git"
|
||||||
# Enable transparent encryption/decryption of files in a git repo
|
# Enable transparent encryption/decryption of files in a git repo
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
version: "1"
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# What protocol to use when performing git operations. Supported values: ssh, https
|
|
||||||
git_protocol: https
|
|
||||||
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
|
|
||||||
editor:
|
|
||||||
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
|
|
||||||
prompt: enabled
|
|
||||||
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.
|
|
||||||
pager:
|
|
||||||
# Aliases allow you to create nicknames for gh commands
|
|
||||||
aliases:
|
|
||||||
co: pr checkout
|
|
||||||
xds: 'pr list --label="team: xds-web"'
|
|
||||||
me: pr list --assignee @me
|
|
||||||
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport.
|
|
||||||
http_unix_socket:
|
|
||||||
# What web browser gh should use when opening URLs. If blank, will refer to environment.
|
|
||||||
browser:
|
|
||||||
version: "1"
|
|
||||||
@@ -13,6 +13,7 @@ in
|
|||||||
./ctags
|
./ctags
|
||||||
./curl
|
./curl
|
||||||
./editorconfig
|
./editorconfig
|
||||||
|
./gh
|
||||||
./git
|
./git
|
||||||
./gnupg
|
./gnupg
|
||||||
./hammerspoon
|
./hammerspoon
|
||||||
|
|||||||
32
nix/home/gh/default.nix
Normal file
32
nix/home/gh/default.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.gh = {
|
||||||
|
enable = true;
|
||||||
|
extensions = with pkgs; [
|
||||||
|
gh-copilot # Ask for assistance right in your terminal
|
||||||
|
gh-dash # Display a dashboard with pull requests and issues
|
||||||
|
gh-eco # Explore the ecosystem
|
||||||
|
gh-f # Ultimate FZF extension
|
||||||
|
gh-markdown-preview # Preview Markdown looking like on GitHub
|
||||||
|
gh-notify # Display GitHub notifications
|
||||||
|
gh-poi # Safely clean up your local branches
|
||||||
|
gh-s # Search github repositories interactively
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
git_protocol = "ssh";
|
||||||
|
prompt = "enabled";
|
||||||
|
aliases = {
|
||||||
|
co = "pr checkout";
|
||||||
|
me = "pr list --assignee @me";
|
||||||
|
pv = "pr view";
|
||||||
|
xds = "pr list --label='team: design-system'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
git
|
||||||
|
gh
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
gh extension install github/gh-copilot
|
|
||||||
gh extension install thatvegandev/gh-eco
|
|
||||||
gh extension install gennaro-tedesco/gh-s
|
|
||||||
gh extension install mislav/gh-branch
|
|
||||||
gh extension install seachicken/gh-poi
|
|
||||||
gh extension install keidarcy/gh-star
|
|
||||||
gh extension install dlvhdr/gh-dash
|
|
||||||
gh extension install kawarimidoll/gh-graph
|
|
||||||
@@ -67,10 +67,6 @@ source ./ruby.sh
|
|||||||
echo "Installing Go"
|
echo "Installing Go"
|
||||||
source ./golang.sh
|
source ./golang.sh
|
||||||
|
|
||||||
# GitHub CLI Extensions
|
|
||||||
echo "Installing GitHub CLI Extensions"
|
|
||||||
source ./github.sh
|
|
||||||
|
|
||||||
# MacOS Default Settings
|
# MacOS Default Settings
|
||||||
echo "Restoring default settings for MacOS"
|
echo "Restoring default settings for MacOS"
|
||||||
source ./macos.sh
|
source ./macos.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user