From cdd026752772ac2765a9b023ce35606305aeff08 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Thu, 27 Apr 2023 14:42:08 +0100 Subject: [PATCH] Add some more aliases/functions --- .bashrc.d/akamai | 1 + .bashrc.d/alias.clipboard | 2 ++ .bashrc.d/alias.open | 1 + .bashrc.d/vscode | 1 + 4 files changed, 5 insertions(+) create mode 100644 .bashrc.d/akamai create mode 100644 .bashrc.d/alias.clipboard create mode 100644 .bashrc.d/alias.open create mode 100644 .bashrc.d/vscode diff --git a/.bashrc.d/akamai b/.bashrc.d/akamai new file mode 100644 index 0000000..9054c7a --- /dev/null +++ b/.bashrc.d/akamai @@ -0,0 +1 @@ +alias akamai="docker run --rm -it -u \$(id -u) -v /dev/null:/etc/motd -v \${HOME}/.edgerc:/.edgerc -v \$(pwd):/workdir akamai/shell akamai" diff --git a/.bashrc.d/alias.clipboard b/.bashrc.d/alias.clipboard new file mode 100644 index 0000000..6f03f20 --- /dev/null +++ b/.bashrc.d/alias.clipboard @@ -0,0 +1,2 @@ +[[ -x /usr/bin/copyq ]] && function pbpaste() { /usr/bin/copyq clipboard; } && export -f pbpaste +[[ -x /usr/bin/copyq ]] && function pbcopy() { /usr/bin/copyq add -; } && export -f pbcopy diff --git a/.bashrc.d/alias.open b/.bashrc.d/alias.open new file mode 100644 index 0000000..0afc370 --- /dev/null +++ b/.bashrc.d/alias.open @@ -0,0 +1 @@ +alias open=xdg-open diff --git a/.bashrc.d/vscode b/.bashrc.d/vscode new file mode 100644 index 0000000..56d0e1c --- /dev/null +++ b/.bashrc.d/vscode @@ -0,0 +1 @@ +alias code=codium