From 814e39727b4347418c6f5fe0b111f24a66831189 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 26 Feb 2020 20:06:52 +0200 Subject: [PATCH] {bash,zsh}rc: improve transmission-magnet () * grep is no longer an alias removing the excess colour * awk removes the `Magnet: ` part from the beginning --- rc/bashrc | 2 +- rc/zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index b1d292e1..502c8179 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -717,7 +717,7 @@ transmission-torrents () { transmission-remote -l } transmission-magnet () { - transmission-remote -l -t $1 -i | grep magnet + transmission-remote -l -t $1 -i | \grep magnet | awk -F': ' '{print $2}' } # Merges the last $1 commits into one diff --git a/rc/zshrc b/rc/zshrc index bf088f6f..236a9994 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -698,7 +698,7 @@ transmission-torrents () { transmission-remote -l } transmission-magnet () { - transmission-remote -l -t $1 -i | grep magnet + transmission-remote -l -t $1 -i | \grep magnet | awk -F': ' '{print $2}' } # Merges the last $1 commits into one