update/rearrange shell-related configurations

This commit is contained in:
John Bowdre 2024-12-04 21:10:00 -06:00
parent 0bbe614b7d
commit 54f6a84162
Signed by: john
SSH key fingerprint: SHA256:cZYnOxaLdo+MhBNMX38ihO/p2Kek6fBykSFoJwHBhUo
14 changed files with 95 additions and 58 deletions

View file

@ -2,9 +2,8 @@
# Core CLI apps
imports = [
./eza.nix
./git.nix
./fish
./shell
./nix-index.nix
./neovim
./tmux.nix

View file

@ -3,7 +3,6 @@
imports = [
../default.nix
./direnv.nix
./go.nix
];

View file

@ -1,6 +0,0 @@
{
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
}

View file

@ -1,9 +0,0 @@
{ lib, ... }: {
programs.eza = {
enable = true;
extraOptions = [
"--group-directories-first"
];
git = true;
};
}

View file

@ -1,20 +0,0 @@
{
programs.fish.shellAbbrs = rec {
ccat = "egrep -v '^\s*(#|\\$)'";
dnsplan = "dnscontrol preview";
dnspush = "dnscontrol push";
g = "git";
ga = "git add";
gc = "git commit -S"; # interactive commit
gcm = "git commit -S -m"; # quick commit
gg = "git graph";
gs = "git status";
jqless = "jq -C | less -r";
n = "nix";
sshpass = "ssh -o PubkeyAuthentication=no";
tf = "terraform";
tfyolo = "terraform apply -auto-approve";
v = "vim";
vi = "vim";
};
}

View file

@ -1,6 +0,0 @@
{
programs.fish.shellAliases = {
cat = "bat";
top = "btop";
};
}

View file

@ -1,12 +0,0 @@
{
imports = [
./abbrs.nix
./aliases.nix
./functions.nix
./shell-init.nix
];
programs.fish = {
enable = true;
};
}

View file

@ -0,0 +1,15 @@
{
cat = "bat";
ccat = "egrep -v '^\s*(#|\\$)'";
g = "git";
gg = "git graph";
gs = "git status";
jqless = "jq -C | less -r";
n = "nix";
sshpass = "ssh -o PubkeyAuthentication=no";
tf = "terraform";
tfyolo = "terraform apply -auto-approve";
top = "btop";
v = "vim";
vi = "vim";
}

View file

@ -0,0 +1,24 @@
{
imports = [
./eza.nix
./fish
];
home = {
shellAliases = import ./aliases.nix;
};
programs = {
zoxide = {
enable = true;
options = ["--cmd" "j"];
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
fzf.enable = true;
};
}

View file

@ -0,0 +1,17 @@
{
programs.eza = {
enable = true;
enableFishIntegration = false;
extraOptions = [
"--group-directories-first"
];
git = true;
};
home.shellAliases = {
ls = "eza";
l = "eza -lhg";
ll = "eza -alhg";
lt = "eza --tree";
};
}

View file

@ -0,0 +1,10 @@
{
programs.fish.shellAbbrs = rec {
"-" = "prevd";
dnsplan = "dnscontrol preview";
dnspush = "dnscontrol push";
ga = "git add";
gc = "git commit -S";
gcm = "git commit -S -m";
};
}

View file

@ -0,0 +1,25 @@
{ pkgs, ... }: {
imports = [
./abbrs.nix
./functions.nix
./shell-init.nix
];
programs = {
fish = {
enable = true;
plugins = [
{
name = "plugin-git";
src = pkgs.fishPlugins.plugin-git.src;
}
{
name = "bass";
src = pkgs.fishPlugins.bass.src;
}
];
};
};
}

View file

@ -69,7 +69,7 @@
# nix-shell
set -l nix (
if test -n "$IN_NIX_SHELL"
echo -n "[nix]"
echo -n ""
end
)

View file

@ -14,8 +14,9 @@
''
fish_vi_key_bindings
set fish_cursor_default block
set fish_cursor_insert block blink
set fish_cursor_insert line blink
set fish_cursor_replace_one underscore blink
set fish_cursor_replace underscore blink
set fish_cursor_visual block
'' +
# Restore ctrl+f to accept suggestions