From 64147c954f38154058ff575f9baf528dbeac6d37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 16 Dec 2016 16:04:35 +0100 Subject: Enable systemd aliases on systemd machine --- conkerorrc | 2 ++ install | 1 + shellrc | 8 ++++++++ 3 files changed, 11 insertions(+) diff --git a/conkerorrc b/conkerorrc index 47e9b42..d692e4e 100644 --- a/conkerorrc +++ b/conkerorrc @@ -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"); diff --git a/install b/install index 974f4ea..416bae5 100755 --- a/install +++ b/install @@ -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 diff --git a/shellrc b/shellrc index c112183..f1bc6fe 100644 --- a/shellrc +++ b/shellrc @@ -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 -- cgit v1.2.3