From a55cffa8b3cbc02e2b021ed25e67203d337c36bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 12 Aug 2018 18:37:31 +0200 Subject: Move some definitions around and add --desktop option --- shellrc.d/alias | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 shellrc.d/alias (limited to 'shellrc.d/alias') diff --git a/shellrc.d/alias b/shellrc.d/alias new file mode 100644 index 0000000..78dcafe --- /dev/null +++ b/shellrc.d/alias @@ -0,0 +1,24 @@ +# vim: ft=sh: +alias ls='ls --color=auto' +eval $(dircolors -b) +alias ll='ls -lh' +alias df='df -h' +alias du='du -h' +alias grep='grep --color=auto' +alias ip='ip -c' +alias git='LANG=en_GB git' +alias gdb='gdb -q' +alias cgdb='cgdb -q' +alias octave='octave-cli -q' +alias ssh='TERM="xterm-256color" ssh' +alias gst='git status' +alias v='vim' +alias watch='watch -n 1 -c -t -d' + +# 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 -- cgit v1.2.3