-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrest.nix
More file actions
64 lines (58 loc) · 1.48 KB
/
Copy pathrest.nix
File metadata and controls
64 lines (58 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{ pkgs, ... }: {
programs.fzf = {
enable = true;
enableBashIntegration = true;
defaultCommand = "rg --files --hidden --follow";
defaultOptions = [ "-m --bind ctrl-a:select-all,ctrl-d:deselect-all" ];
};
programs.bash = {
enable = true;
profileExtra = builtins.readFile ./profile;
historyControl = [ "ignorespace" "ignoredups" ];
sessionVariables = {
PROMPT_COMMAND = "echo";
EDITOR = "nvim";
RUBY_CONFIGURE_OPTS = "--disable-install-doc";
ERL_AFLAGS = "-kernel shell_history enabled";
SHELL = "${pkgs.bashInteractive}/bin/bash";
BAT_THEME = "OneHalfDark";
};
shellAliases = {
ls = "exa -F";
la = "exa -la";
rm = "rm -i";
mv = "mv -i";
cp = "cp -i";
im = "vim";
grep = "grep --color=auto";
sudo = "sudo ";
};
shellOptions = [
"cdspell"
"checkwinsize"
"cmdhist"
"dotglob"
"histappend"
"nocaseglob"
];
initExtra = builtins.readFile ./bashrc;
};
programs.tmux = {
enable = true;
terminal = "screen-256color";
secureSocket = false;
extraConfig = builtins.readFile ./tmux.conf;
};
programs.direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
};
programs.zoxide = {
enable = true;
enableBashIntegration = true;
};
programs.exa = { enable = true; };
home.file.".inputrc".source = ./inputrc;
home.file.".gemrc".text = "gem: --no-ri --no-rdoc";
}