diff options
author | Karel Kočí <karel.koci@nic.cz> | 2016-12-16 16:04:35 +0100 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2016-12-16 16:04:35 +0100 |
commit | 64147c954f38154058ff575f9baf528dbeac6d37 (patch) | |
tree | bf02039a3e141325893e075f51ec7e5e0e4caa67 | |
parent | 30da82b601b079340e2580cd0685e27c346d2e87 (diff) | |
download | myconfigs-64147c954f38154058ff575f9baf528dbeac6d37.tar.gz myconfigs-64147c954f38154058ff575f9baf528dbeac6d37.tar.bz2 myconfigs-64147c954f38154058ff575f9baf528dbeac6d37.zip |
Enable systemd aliases on systemd machine
-rw-r--r-- | conkerorrc | 2 | ||||
-rwxr-xr-x | install | 1 | ||||
-rw-r--r-- | shellrc | 8 |
3 files changed, 11 insertions, 0 deletions
@@ -37,6 +37,8 @@ session_pref("layout.css.devPixelsPerPx", "0.9"); require("key-kill"); key_kill_mode.test.push(/\/\/.*\//); //regexp matches all sites +view_source_use_external_editor = true; + ///////////////////////////////////////////////////////////////////////////////// // reopening closed buffers define_key(default_global_keymap, "A-W", "revive-buffer"); @@ -2,6 +2,7 @@ cd `dirname $0` +# TODO arguments parsing git submodule update --init || (echo "Submodule update failed! Use --ignore-sub if it's ok."; exit 5) # Source inst and diff function @@ -32,6 +32,14 @@ alias gst='git status' alias v='vim' alias i='i3-msg' +# Systemd aliases if we are running systemd +if pidof systemd >/dev/null 2>/dev/null; then + alias sctl='sudo systemctl' + alias usctl='systemctl --user' + alias jrn='journalctl' + alias ujrn='jrn --user' +fi + genpasswd() { local l=$1 if [ "$l" = "" ]; then l=16; fi |