diff options
author | tdro <tdro@users.noreply.github.com> | 2020-06-07 21:04:50 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-06-07 21:04:50 -0400 |
commit | 1dfa5641fcfb659ac3fdfa4eddb81fa673454567 (patch) | |
tree | 8a85de822467029f742496f945bea5c25796be49 | |
parent | 90bf176a6b245118bab1931a35112526dbcfd7a5 (diff) | |
download | dotfiles-1dfa5641fcfb659ac3fdfa4eddb81fa673454567.tar.gz dotfiles-1dfa5641fcfb659ac3fdfa4eddb81fa673454567.tar.bz2 dotfiles-1dfa5641fcfb659ac3fdfa4eddb81fa673454567.zip |
.bashrc: sponge is back
-rw-r--r-- | .bashrc | 2 | ||||
-rw-r--r-- | .config/nixpkgs/config.nix | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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" ]; }; |