aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc2
-rw-r--r--.config/nixpkgs/config.nix1
2 files changed, 2 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index aa6f022..58b4ead 100644
--- a/.bashrc
+++ b/.bashrc
@@ -112,7 +112,7 @@ lxc-destroy() { for container in "$@"; do $(type -P lxc-destroy) -n "$container"
[ -f "$HOME/.config/fzf-marks/fzf-marks.plugin.bash" ] && . "$HOME/.config/fzf-marks/fzf-marks.plugin.bash"
# remove bash history duplicates
-history-remove-duplicates() { awk '!visited[$0]++' "$HOME/.bash_history" > /tmp/.bash_history.tmp && mv -f /tmp/.bash_history.tmp "$HOME/.bash_history"; }
+history-remove-duplicates() { awk '!visited[$0]++' "$HOME/.bash_history" | sponge "$HOME/.bash_history"; }
# extract docker container as rootfs
docker-rootfs() { id=$(docker run -d "$1" /bin/true) && docker export "$id" -o "$2.tar" && docker container rm "$id"; }
diff --git a/.config/nixpkgs/config.nix b/.config/nixpkgs/config.nix
index eaa05b3..8b84762 100644
--- a/.config/nixpkgs/config.nix
+++ b/.config/nixpkgs/config.nix
@@ -83,6 +83,7 @@ in
surfraw
libxml2
html-xml-utils
+ moreutils
];
pathsToLink = [ "/etc" "/share" "/bin" ];
};