aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/shortcuts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2023-03-21 18:19:32 +0100
committerKarel Kočí <cynerd@email.cz>2023-03-21 20:46:05 +0100
commit7be0acbb1cd6b6d3c4c3df95611cb86be4b46915 (patch)
treefcdca6619a05b1e72ebb8b9ddf0d04586b434e94 /shellrc.d/shortcuts
parentf0eab21bab34beb657059cf5dfe91ca8072edb35 (diff)
downloadshellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.tar.gz
shellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.tar.bz2
shellrc-7be0acbb1cd6b6d3c4c3df95611cb86be4b46915.zip
Drop desktop variant and rework nix packages
Diffstat (limited to 'shellrc.d/shortcuts')
-rw-r--r--shellrc.d/shortcuts20
1 files changed, 20 insertions, 0 deletions
diff --git a/shellrc.d/shortcuts b/shellrc.d/shortcuts
new file mode 100644
index 0000000..93b6283
--- /dev/null
+++ b/shellrc.d/shortcuts
@@ -0,0 +1,20 @@
+# vim: ft=sh:
+# There are desktop specific shortcuts
+
+if [ -d ~/turris ]; then
+ turris() {
+ cd ~/turris/"$1" || return
+ }
+fi
+
+if [ -d ~/projects ]; then
+
+ projects() {
+ cd ~/projects/"$1" || return
+ }
+
+ admin() {
+ projects admin/"$1"
+ }
+
+fi