Skip to content

Commit

Permalink
set bash history config
Browse files Browse the repository at this point in the history
  • Loading branch information
benkio committed Nov 1, 2024
1 parent 5382898 commit 361ca44
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 0 additions & 1 deletion homeCommon/homeConfig.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
LANG = "en_US.utf-8";
EDITOR = "emacsclient -t"; # emacs client terminal
VISUAL = "emacsclient -c -a emacs"; # emacs client visual
HISTCONTROL = "ignoreboth";
ESHELL = "/run/current-system/sw/bin/bash";
SBT_NATIVE_CLIENT = "true";
PGDATA = "${config.home.homeDirectory}/postgresDataDir";
Expand Down
9 changes: 9 additions & 0 deletions homeCommon/programs/bash.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ in
sbt = "sbt -Dsbt.supershell=false";
}
];
historyControl = [ "ignoreboth" ];
historyIgnore = [
"ls"
"ll"
"cd"
"exit"
];
historyFileSize = -1;
historySize = -1;
initExtra = ''
shopt -s autocd #Automatically put `cd` before a path
. ${config.home.homeDirectory}/.nix-profile/etc/profile.d/hm-session-vars.sh
Expand Down
2 changes: 1 addition & 1 deletion systemCommon/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
magic-wormhole
mediainfo
# mcomix3
mysql
# mysql
nix-prefetch-scripts
nixfmt-rfc-style
nmap
Expand Down

0 comments on commit 361ca44

Please sign in to comment.