From 44dd4e3f8e0bbc471aaed52dc679fff7fa651f47 Mon Sep 17 00:00:00 2001 From: infogulch Date: Fri, 21 May 2021 15:38:37 -0500 Subject: [PATCH] Add .functions --- .exports | 2 ++ .functions | 13 +++++++++++++ .gitignore | 1 + 3 files changed, 16 insertions(+) create mode 100644 .exports create mode 100644 .functions diff --git a/.exports b/.exports new file mode 100644 index 0000000..19d1fc7 --- /dev/null +++ b/.exports @@ -0,0 +1,2 @@ +export EDITOR="vim" + diff --git a/.functions b/.functions new file mode 100644 index 0000000..e60030d --- /dev/null +++ b/.functions @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +function ssh_setup { + mkdir -p ~/.ssh + chmod 700 ~/.ssh + touch ~/.ssh/config + chmod 600 ~/.ssh/config +} + +function ssh_key { + ssh-keygen -t ed25519 -C "${1?"Usage: $0 EMAIL"}" +} + diff --git a/.gitignore b/.gitignore index 025b90a..ceb37e4 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ !.gitignore !.aliases !.exports +!.functions !.bashrc