mirror of
https://github.com/notwa/rc
synced 2025-03-16 06:52:49 -07:00
remove logs command
This commit is contained in:
parent
f116182d0f
commit
a35f853942
2 changed files with 0 additions and 19 deletions
|
@ -302,10 +302,6 @@ $ isup fdhafdslkjgfjs.com && echo yay || echo nay
|
|||
nay
|
||||
```
|
||||
|
||||
### [logs](/sh/logs)
|
||||
|
||||
(bash/zsh) just wraps around `journalctl`. i don't remember how it works exactly.
|
||||
|
||||
### [lol-twitter](/sh/lol-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…
Add table
Reference in a new issue