This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
{
|
||||
imports =
|
||||
[ ./fzf.nix ./zsh.nix ./starship.nix ./zoxide.nix ./tmux.nix ./eza.nix ];
|
||||
imports = [
|
||||
./fzf.nix
|
||||
./zsh.nix
|
||||
./starship.nix
|
||||
./zoxide.nix
|
||||
./tmux.nix
|
||||
./eza.nix
|
||||
./direnv.nix
|
||||
];
|
||||
}
|
||||
|
||||
8
home/programs/shell/direnv.nix
Normal file
8
home/programs/shell/direnv.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
# Direnv for development
|
||||
{
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -8,6 +8,9 @@ in {
|
||||
enable = true;
|
||||
settings = {
|
||||
add_newline = true;
|
||||
aws.disabled = true;
|
||||
azure.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
format = lib.concatStrings [
|
||||
"$directory"
|
||||
"$git_branch"
|
||||
|
||||
@@ -29,7 +29,8 @@ in {
|
||||
enable = true;
|
||||
mouse = true;
|
||||
shell = "${pkgs.zsh}/bin/zsh";
|
||||
prefix = "C-s";
|
||||
prefix = "C-a";
|
||||
baseIndex = 1;
|
||||
terminal = "kitty";
|
||||
keyMode = "vi";
|
||||
|
||||
@@ -45,13 +46,18 @@ in {
|
||||
bind-key -n C-Tab next-window
|
||||
bind-key -n C-S-Tab previous-window
|
||||
bind-key -n M-Tab new-window
|
||||
bind C-l send-keys 'C-l'
|
||||
|
||||
bind c new-window -c "#{pane_current_path}"
|
||||
bind '"' split-window -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
'';
|
||||
|
||||
plugins = with pkgs; [
|
||||
tmuxPlugins.vim-tmux-navigator
|
||||
tmuxPlugins.resurrect
|
||||
tmuxPlugins.sensible
|
||||
tmuxPlugins.tokyo-night-tmux
|
||||
# tmuxPlugins.tokyo-night-tmux
|
||||
];
|
||||
};
|
||||
home.packages = [ Config ];
|
||||
|
||||
@@ -3,12 +3,24 @@
|
||||
let fetch = config.var.theme.fetch; # neofetch, nerdfetch, pfetch
|
||||
in {
|
||||
|
||||
home.packages = with pkgs; [ bat ripgrep tldr sesh ];
|
||||
home.packages = with pkgs; [ ripgrep tldr sesh ];
|
||||
|
||||
home.sessionPath = [ "$HOME/go/bin" ];
|
||||
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs.bat-extras; [
|
||||
batman
|
||||
batdiff
|
||||
batgrep
|
||||
batwatch
|
||||
prettybat
|
||||
];
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autocd = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
@@ -64,10 +76,16 @@ in {
|
||||
open = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
||||
|
||||
cat = "bat";
|
||||
diff = "batdiff";
|
||||
man = "batman";
|
||||
grep = "batgrep";
|
||||
rofi = "wofi";
|
||||
|
||||
wireguard-import = "nmcli connection import type wireguard file";
|
||||
|
||||
notes =
|
||||
"nvim ~/nextcloud/Notes/index.md --cmd 'cd ~/nextcloud/Notes' -c ':Telescope find_files'";
|
||||
"nvim ~/nextcloud/Catatan/index.md --cmd 'cd ~/nextcloud/Catatan' -c ':Telescope find_files'";
|
||||
note = "notes";
|
||||
|
||||
# git
|
||||
|
||||
Reference in New Issue
Block a user