aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/shortcuts
diff options
context:
space:
mode:
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