{bash,zsh}rc: improve transmission-magnet ()

* grep is no longer an alias removing the excess colour
* awk removes the `Magnet: ` part from the beginning
This commit is contained in:
Aminda Suomalainen 2020-02-26 20:06:52 +02:00
parent 99299798cc
commit 814e39727b
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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