aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2016-09-02 17:11:50 +0200
committerKarel Kočí <karel.koci@nic.cz>2016-09-02 17:11:50 +0200
commit32d4f95cbf0121dd9092ff1995b3baa064c00162 (patch)
tree3d34315af331b99304f26c2ff74d17e943d632ae
parent92f04daed707d4d614044b25e80327ab98d4c071 (diff)
downloadmyconfigs-32d4f95cbf0121dd9092ff1995b3baa064c00162.tar.gz
myconfigs-32d4f95cbf0121dd9092ff1995b3baa064c00162.tar.bz2
myconfigs-32d4f95cbf0121dd9092ff1995b3baa064c00162.zip
Add systemd aliases
-rwxr-xr-xinstall2
-rw-r--r--shellrc6
2 files changed, 8 insertions, 0 deletions
diff --git a/install b/install
index 9f71b27..c929ab7 100755
--- a/install
+++ b/install
@@ -48,6 +48,8 @@ inst() {
doinst $1 $2
}
+# TODO if on archlinux install pkgstats
+
read -p "Install Bashrc? (Y/n) "
if [[ $REPLY =~ ^[Yy]?$ ]]; then
inst bashrc ~/.bashrc
diff --git a/shellrc b/shellrc
index ab68f31..eeaae29 100644
--- a/shellrc
+++ b/shellrc
@@ -32,6 +32,12 @@ alias vimp='vim -c "call InitPython()"'
alias vims='vim -c "call InitBash()"'
alias i='i3-msg'
+# Systemd aliases
+alias sctl='sudo systemctl'
+alias usctl='systemctl --user'
+alias jrn='journalctl'
+alias ujrn='jrn --user'
+
genpasswd() {
local l=$1
if [ "$l" = "" ]; then l=16; fi