From 31284e1049008072a80b2a33e0b5e419cea6eff6 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 28 Jun 2018 13:53:00 +0200 Subject: [PATCH] improve git-completion; add terminfo copy command; vis --- bashrc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index c28f1ee..d355d37 100644 --- a/bashrc +++ b/bashrc @@ -41,7 +41,7 @@ _comp_git() { COMPREPLY+=( $(git remote | grep "^$2") ) # files - COMPREPLY+=( $(git ls-files -co --exclude-standard "$2*" | sed "s?\($2[^/]*\).*?\1?") ) + COMPREPLY+=( $(git ls-files -coz --exclude-standard "$2*" | tr '\0' '\n' | sed "s?\($2[^/]*\).*?\1?") ) # subcommands if [ "$3" = "git" ]; then @@ -66,9 +66,9 @@ alias less="LESSHISTFILE=- less" alias more="less" # There is only one vim -alias vim="nvim" -alias vi="nvim" -alias nano="nvim" +alias vim="vis" +alias vi="vis" +alias nano="vis" # Ready for ssh'ing alias agent='eval "$(ssh-agent)" && ssh-add' @@ -78,7 +78,7 @@ alias stop-after-this-song="mpc single && mpc idle && mpc single" alias morning="maintain && gitfetcher" -alias weechat="ssh -t weechat@Chatmachine abduco -a weechat" +alias weechat="ssh -t weechat@Chatmachine abduco -A weechat" alias bearchat="ssh -f -N -L localhost:9001:localhost:8001 weechat@Chatmachine" go() { @@ -92,3 +92,6 @@ run() { exec "$@" > /dev/null 2>&1 & } +terminfo() { + infocmp -x | ssh $@ 'cat > $TERM.info && tic -x $TERM.info && rm $TERM.info' +}