mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nix): migrate bash
This commit is contained in:
39
nix/home/bash/default.nix
Normal file
39
nix/home/bash/default.nix
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
sessionVariables = {
|
||||||
|
SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
||||||
|
FD_OPTIONS = "--follow --exclude .git --exclude node_modules";
|
||||||
|
KEYTIMEOUT = 1;
|
||||||
|
GIT_EDITOR = "nvim";
|
||||||
|
EDITOR = "nvim";
|
||||||
|
FZF_DEFAULT_COMMAND = "git ls-files --cached --others --exclude-standard | fd --hidden --type f --type l $FD_OPTIONS";
|
||||||
|
FZF_DEFAULT_OPTS = "--no-height";
|
||||||
|
FZF_CTRL_T_COMMAND = "$FZF_DEFAULT_COMMAND";
|
||||||
|
FZF_CTRL_T_OPTS = "--preview 'bat --color=always --style=numbers {}' --bind shift-up:preview-page-up,shift-down:preview-page-down";
|
||||||
|
FZF_CTRL_R_OPTS = "--reverse";
|
||||||
|
FZF_TMUX_OPTS = "-p";
|
||||||
|
FZF_ALT_C_COMMAND = "fd --type d $FD_OPTIONS --color=never --hidden";
|
||||||
|
FZF_ALT_C_OPTS = "--preview 'tree -C {} | head -50'";
|
||||||
|
};
|
||||||
|
shellAliases = {
|
||||||
|
".." = "cd ..";
|
||||||
|
};
|
||||||
|
shellOptions = [
|
||||||
|
"histappend"
|
||||||
|
"checkwinsize"
|
||||||
|
"extglob"
|
||||||
|
"globstar"
|
||||||
|
"checkjobs"
|
||||||
|
];
|
||||||
|
historyControl = [
|
||||||
|
"erasedups"
|
||||||
|
"ignorespace"
|
||||||
|
];
|
||||||
|
historyFileSize = 100000;
|
||||||
|
historySize = 10000;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -9,6 +9,7 @@ in
|
|||||||
./ack
|
./ack
|
||||||
./ag
|
./ag
|
||||||
./asdf
|
./asdf
|
||||||
|
./bash
|
||||||
./bat
|
./bat
|
||||||
./ctags
|
./ctags
|
||||||
./curl
|
./curl
|
||||||
@@ -82,7 +83,6 @@ in
|
|||||||
# environment.
|
# environment.
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
atuin # Replacement for a shell history which records additional commands context with optional encrypted synchronization between machines
|
atuin # Replacement for a shell history which records additional commands context with optional encrypted synchronization between machines
|
||||||
bash # GNU Bourne-Again Shell, the de facto standard shell on Linux
|
|
||||||
bfg-repo-cleaner # Removes large or troublesome blobs in a git repository like git-filter-branch does, but faster
|
bfg-repo-cleaner # Removes large or troublesome blobs in a git repository like git-filter-branch does, but faster
|
||||||
btop # Monitor of resources
|
btop # Monitor of resources
|
||||||
bzip2 # High-quality data compression program
|
bzip2 # High-quality data compression program
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
programs.lsd =
|
programs.lsd =
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAliases = true;
|
enableAliases = false;
|
||||||
settings = {
|
settings = {
|
||||||
classic = false;
|
classic = false;
|
||||||
blocks = [
|
blocks = [
|
||||||
|
|||||||
Reference in New Issue
Block a user