diff options
author | tdro <tdro@users.noreply.github.com> | 2020-04-19 16:44:40 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-04-19 16:44:40 -0400 |
commit | c37c78a95139a05909de47ace4dad574b9b74830 (patch) | |
tree | ce329a6301991aeda2f6a4931d2391cc5ab3d5a7 /.bashrc | |
parent | da85bc2cdffbc5ea065ccca16fd74b3ca25e86d7 (diff) | |
download | dotfiles-c37c78a95139a05909de47ace4dad574b9b74830.tar.gz dotfiles-c37c78a95139a05909de47ace4dad574b9b74830.tar.bz2 dotfiles-c37c78a95139a05909de47ace4dad574b9b74830.zip |
.bashrc: Source fzf key bindings
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -24,6 +24,12 @@ stty start ''; stty -ixon; stty -ixoff; +# fzf bindings +[ -f '/usr/share/fzf/completion.bash' ] && . /usr/share/fzf/completion.bash +[ -f '/usr/share/fzf/key-bindings.bash' ] && . /usr/share/fzf/key-bindings.bash +[ -f '/usr/share/doc/fzf/examples/completion.bash' ] && . /usr/share/doc/fzf/examples/completion.bash +[ -f '/usr/share/doc/fzf/examples/key-bindings.bash' ] && . /usr/share/doc/fzf/examples/key-bindings.bash + # set virtual console colors if [ "$TERM" = "linux" ]; then echo -en "\e]P0111111" #black [background] @@ -75,7 +81,6 @@ alias wavemon='sudo wavemon' alias pacman='sudo pacman' alias grep='grep --color=tty -d skip' alias alsamixer='alsamixer -V all' -alias fzh='cat $HOME/.bash_history | fzf' alias dmesg='dmesg -e' alias diceware='diceware -d " "' alias colortest='msgcat --color=test' @@ -108,6 +113,7 @@ alias pgloader="docker run --rm dimitri/pgloader:latest pgloader" # 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; # extract docker container as rootfs docker-rootfs() { id=$(docker run -d "$1" /bin/true) && docker export -o "$2" "$id" && docker container rm "$id"; } |