Add git config and several pkgs
I've added the config to symlink my dotfiles .git like I used to do with stow.
This commit is contained in:
12
git/.config/git/config
Normal file
12
git/.config/git/config
Normal file
@@ -0,0 +1,12 @@
|
||||
[user]
|
||||
name = J. Fernando Sánchez
|
||||
email = j@sinpapel.es
|
||||
|
||||
[core]
|
||||
pager = delta
|
||||
|
||||
[includeIf "gitdir:~/git/work/tcs/"]
|
||||
path = tcs.config
|
||||
|
||||
[delta]
|
||||
side-by-side = true
|
||||
3
git/.config/git/tcs.config
Normal file
3
git/.config/git/tcs.config
Normal file
@@ -0,0 +1,3 @@
|
||||
[user]
|
||||
name = J. Fernando Sánchez
|
||||
email = f.sanchez@thechannelstore.tv
|
||||
@@ -1,10 +1,15 @@
|
||||
[user]
|
||||
name = J. Fernando Sánchez
|
||||
email = balkian@gmail.com
|
||||
email = j@sanchezrada.es
|
||||
|
||||
[diff]
|
||||
tool = vimdiff
|
||||
tool = delta
|
||||
[alias]
|
||||
d = difftool
|
||||
|
||||
[includeIf "gitdir:~/git/work/tcs"]
|
||||
path = ~/.config/git/tcs.config
|
||||
|
||||
[include]
|
||||
path = ~/.gitconfig_secret
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
# Utils
|
||||
jq
|
||||
bat # Replacement for less
|
||||
delta # Replacement for less (for git diff and the like)
|
||||
eza # Better ld
|
||||
zoxide # better cd
|
||||
yazi # File manager
|
||||
@@ -47,12 +48,13 @@
|
||||
dust # File disk utilization
|
||||
gnumake
|
||||
|
||||
zenith # System monitor
|
||||
|
||||
# Productivity
|
||||
taskwarrior3
|
||||
taskwarrior-tui
|
||||
timewarrior
|
||||
|
||||
zenith # System monitor
|
||||
|
||||
# Shells
|
||||
fish
|
||||
grc # Colorizer
|
||||
@@ -120,7 +122,8 @@
|
||||
home.sessionVariables = {
|
||||
XDG_BIN_HOME = "${config.home.homeDirectory}/.local/bin";
|
||||
#This variable is overriden. It does not work
|
||||
EDITOR = "nvim";
|
||||
EDITOR = "hx";
|
||||
PAGER = "bat";
|
||||
};
|
||||
home.sessionPath = [ "$XDG_BIN_HOME" ];
|
||||
|
||||
@@ -181,6 +184,10 @@
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
|
||||
|
||||
xdg.configFile = {
|
||||
"git" = {
|
||||
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/git/dotfiles/git/.config/git";
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -4,15 +4,12 @@
|
||||
jujutsu
|
||||
ansible
|
||||
awscli2
|
||||
tinybird
|
||||
cargo-cross
|
||||
rustup
|
||||
rustc
|
||||
gcc
|
||||
vial
|
||||
chromium
|
||||
];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Fernando Sánchez";
|
||||
userEmail = "f.sanchez@thechannelstore.tv";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
18
jj/.config/jj/config.toml
Normal file
18
jj/.config/jj/config.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
"$schema" = "https://jj-vcs.github.io/jj/latest/config-schema.json"
|
||||
|
||||
[user]
|
||||
name = "J. Fernando Sánchez"
|
||||
email = "f.sanchez@thechannelstore.tv"
|
||||
|
||||
[[--scope]]
|
||||
--when.repositories = ["~/git/personal/"]
|
||||
[--scope.user]
|
||||
email = "j@sanchezrada.es"
|
||||
|
||||
[ui]
|
||||
pager = "delta" #":builtin"
|
||||
diff-formatter=":git"
|
||||
|
||||
[merge-tools.delta]
|
||||
diff-args=["--side-by-side", "$left", "$right", "--width=$width"]
|
||||
|
||||
15
lazygit/.config/lazygit/config.yml
Normal file
15
lazygit/.config/lazygit/config.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
customCommands:
|
||||
# - key: "m"
|
||||
# description: "Merge (no‑ff, no‑commit)"
|
||||
# command: "git merge --no-ff --no-commit {{.SelectedBranch}}"
|
||||
# context: "localBranches"
|
||||
# output: terminal
|
||||
- key: "m"
|
||||
description: "Merge (no‑ff, no‑commit)"
|
||||
command: "git merge --no-ff --no-commit {{.SelectedLocalBranch.Name}}"
|
||||
context: "localBranches"
|
||||
output: terminal
|
||||
|
||||
#keybindings:
|
||||
# branches:
|
||||
# merge: "m" # make the UI “Merge” use our custom command
|
||||
@@ -103,6 +103,7 @@ output "eDP-1" {
|
||||
// If the position is unset or results in an overlap, the output is instead placed
|
||||
// automatically.
|
||||
position x=0 y=0
|
||||
//position x=0 y=1080
|
||||
}
|
||||
|
||||
output "DP-1" {
|
||||
@@ -115,10 +116,15 @@ output "DP-1" {
|
||||
// for the resolution.
|
||||
// If the mode is omitted altogether or is invalid, niri will pick one automatically.
|
||||
// Run `niri msg outputs` while inside a niri instance to list all outputs and their modes.
|
||||
//mode "3840x2160@60"
|
||||
mode "3840x2160@60"
|
||||
scale 1.25
|
||||
//mode "1920x1080@60"
|
||||
//mode "2560x1440"
|
||||
//scale 1
|
||||
|
||||
// You can use integer or fractional scale, for example use 1.5 for 150% scale.
|
||||
scale 1.25
|
||||
//scale 1.0
|
||||
|
||||
// Transform allows to rotate the output counter-clockwise, valid values are:
|
||||
// normal, 90, 180, 270, flipped, flipped-90, flipped-180 and flipped-270.
|
||||
@@ -134,6 +140,7 @@ output "DP-1" {
|
||||
// If the position is unset or results in an overlap, the output is instead placed
|
||||
// automatically.
|
||||
position x=1920 y=-500
|
||||
//position x=0 y=0
|
||||
}
|
||||
|
||||
// Settings that influence how windows are positioned and sized.
|
||||
@@ -427,6 +434,9 @@ binds {
|
||||
// Note: the entire command goes as a single argument in the end.
|
||||
// Mod+T { spawn "bash" "-c" "notify-send hello && exec wezterm"; }
|
||||
|
||||
Ctrl+Alt+W { spawn "firefox" "--ProfileManager"; }
|
||||
Ctrl+Alt+Q { spawn "chromium-browser" "--ozone-platform=wayland"; }
|
||||
|
||||
// Brightness control
|
||||
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "s" "+5%"; }
|
||||
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "s" "5%-"; }
|
||||
@@ -556,6 +566,7 @@ binds {
|
||||
Mod+7 { focus-workspace "7"; }
|
||||
Mod+8 { focus-workspace "8"; }
|
||||
Mod+9 { focus-workspace "9"; }
|
||||
Mod+grave { focus-workspace "teams"; }
|
||||
Mod+0 { focus-workspace "teams"; }
|
||||
Mod+Ctrl+1 { move-column-to-workspace "terminal"; }
|
||||
Mod+Ctrl+2 { move-column-to-workspace "firefox"; }
|
||||
|
||||
Reference in New Issue
Block a user