mirror of
https://github.com/notwa/rc
synced 2024-07-02 11:47:12 -07:00
remove logs command
This commit is contained in:
parent
f116182d0f
commit
a35f853942
|
@ -302,10 +302,6 @@ $ isup fdhafdslkjgfjs.com && echo yay || echo nay
|
||||||
nay
|
nay
|
||||||
```
|
```
|
||||||
|
|
||||||
### [logs](/sh/logs)
|
|
||||||
|
|
||||||
(bash/zsh) just wraps around `journalctl`. i don't remember how it works exactly.
|
|
||||||
|
|
||||||
### [lol-twitter](/sh/lol-twitter)
|
### [lol-twitter](/sh/lol-twitter)
|
||||||
|
|
||||||
(zsh) checks if usernames (from stdin) are available on twitter.
|
(zsh) checks if usernames (from stdin) are available on twitter.
|
||||||
|
|
15
sh/logs
15
sh/logs
|
@ -1,15 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
if [ -n "${ZSH_VERSION:-}" ]; then
|
|
||||||
logs() {
|
|
||||||
local last="${@: -1}"
|
|
||||||
[ -n "$last" ] && [ ${last[1]} != '-' ] && last="-u $last"
|
|
||||||
journalctl ${@:1:-1} $last
|
|
||||||
}
|
|
||||||
else
|
|
||||||
logs() {
|
|
||||||
local last="${@: -1}"
|
|
||||||
[ -n "$last" ] && [ ${last:0:1} != '-' ] && last="-u $last"
|
|
||||||
journalctl ${@:1:$(($#-1))} $last
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
logs "$@"
|
|
Loading…
Reference in New Issue
Block a user