add ssh and jj
This commit is contained in:
parent
e6522bdb86
commit
9583e816d6
5 changed files with 91 additions and 32 deletions
|
|
@ -4,6 +4,7 @@
|
|||
imports = lib.concatLists [
|
||||
[
|
||||
./xdg.nix
|
||||
./ssh.nix
|
||||
./nvim
|
||||
./fish
|
||||
./kanata
|
||||
|
|
@ -43,11 +44,10 @@
|
|||
inherit inputs;
|
||||
requirements = [ "graphical" ];
|
||||
home-config =
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
{ config
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
disableFeatures = [
|
||||
|
|
|
|||
|
|
@ -100,8 +100,6 @@ inputs@{ machine, ... }:
|
|||
"-c"
|
||||
script
|
||||
];
|
||||
in
|
||||
{
|
||||
tug = [
|
||||
"bookmark"
|
||||
"move"
|
||||
|
|
@ -110,6 +108,9 @@ inputs@{ machine, ... }:
|
|||
"--to"
|
||||
"coalesce(@ & ~empty(), @-)"
|
||||
];
|
||||
in
|
||||
{
|
||||
inherit tug;
|
||||
fuck = [
|
||||
"bookmark"
|
||||
"move"
|
||||
|
|
@ -153,6 +154,20 @@ inputs@{ machine, ... }:
|
|||
"--from"
|
||||
"trunk()"
|
||||
];
|
||||
next = [ "edit" "@+" ];
|
||||
n = [ "edit" "@+" ];
|
||||
prev = [ "edit" "@-" ];
|
||||
p = [ "edit" "@-" ];
|
||||
|
||||
gp = [ "git" "push" ];
|
||||
t = tug;
|
||||
|
||||
d = "describe";
|
||||
dm = [ "describe" "-m" ];
|
||||
e = "edit";
|
||||
s = "squash";
|
||||
si = "squash -i";
|
||||
sp = "split";
|
||||
};
|
||||
|
||||
templates = {
|
||||
|
|
|
|||
42
programs/ssh.nix
Normal file
42
programs/ssh.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
inputs@{ machine, ... }: {
|
||||
imports =
|
||||
machine.program {
|
||||
name = "ssh";
|
||||
inherit inputs;
|
||||
requirements = [ "cli" ];
|
||||
home-config = _: {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks = {
|
||||
fili = {
|
||||
user = "jana";
|
||||
hostname = "donsz.nl";
|
||||
};
|
||||
icecube = {
|
||||
hostname = "192.168.178.138";
|
||||
proxyJump = "fili";
|
||||
};
|
||||
ragdoll = {
|
||||
hostname = "192.168.178.138";
|
||||
proxyJump = "fili";
|
||||
};
|
||||
|
||||
"*" = {
|
||||
forwardAgent = false;
|
||||
serverAliveInterval = 0;
|
||||
serverAliveCountMax = 3;
|
||||
compression = false;
|
||||
addKeysToAgent = null;
|
||||
hashKnownHosts = false;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||
controlMaster = "no";
|
||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||
controlPersist = null;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
;
|
||||
}
|
||||
|
|
@ -120,6 +120,9 @@ inputs@{ machine, ... }:
|
|||
bind x swap-pane -D
|
||||
bind z resize-pane -Z
|
||||
|
||||
# swap a full screen and terminal
|
||||
bind a if -F "#{?window_zoomed_flag,0,1}" "select-pane -l ; resize-pane -Z" "resize-pane -Z ; select-pane -l"
|
||||
|
||||
# double-click ^k (or lshift with kanata) for previous pane like ^w in vim
|
||||
bind -r ^k select-pane -l
|
||||
bind q confirm-before -p "kill-pane #P? (y/n)" kill-pane
|
||||
|
|
@ -132,7 +135,7 @@ inputs@{ machine, ... }:
|
|||
bind r source-file ~/.config/tmux/tmux.conf \; display "config reloaded"
|
||||
bind ? list-keys
|
||||
|
||||
# Scroll oin man etc
|
||||
# Scroll in man etc
|
||||
tmux_commands_with_legacy_scroll="nano less more man git"
|
||||
|
||||
bind -T root WheelUpPane \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue