# Small wrapper for systemctl which provides some shortcuts.
-# Copyright (C) 2015 Simon Ruderich
+# Copyright (C) 2015-2019 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
done
set +u # empty $args causes an error, I think this is a bug in bash
-exec systemctl "${args[@]}"
+exec systemctl "${args[@]}" 2>&1
alias ta=task
alias te=tree
alias ti=timew
-# systemd ... (sc is provided as shell script for better completion)
-alias jc=journalctl
-alias lc=loginctl
+
+# systemd ... (sc is provided as shell script for better completion); redirect
+# stderr because my color-stderr hack breaks systemd's terminal detection.
+jc() {
+ journalctl "$@" 2>&1
+}
+lc() {
+ loginctl "$@" 2>&1
+}
unalias mv cp 2>/dev/null