mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
{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:
parent
99299798cc
commit
814e39727b
@ -717,7 +717,7 @@ transmission-torrents () {
|
|||||||
transmission-remote -l
|
transmission-remote -l
|
||||||
}
|
}
|
||||||
transmission-magnet () {
|
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
|
# Merges the last $1 commits into one
|
||||||
|
2
rc/zshrc
2
rc/zshrc
@ -698,7 +698,7 @@ transmission-torrents () {
|
|||||||
transmission-remote -l
|
transmission-remote -l
|
||||||
}
|
}
|
||||||
transmission-magnet () {
|
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
|
# Merges the last $1 commits into one
|
||||||
|
Loading…
Reference in New Issue
Block a user