From 15b6e3d47d0179d109d8974a69f42338afd6e90b Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 19 Oct 2019 20:12:22 +0200 Subject: [PATCH] Initial setup --- .bashrc | 9 +++++++++ .gitconfig | 45 +++++++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ .shortcuts/start_server | 5 +++++ .ssh/authorized_keys | 1 + 5 files changed, 62 insertions(+) create mode 100644 .bashrc create mode 100644 .gitconfig create mode 100644 .gitignore create mode 100755 .shortcuts/start_server create mode 100644 .ssh/authorized_keys diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..c73bccb --- /dev/null +++ b/.bashrc @@ -0,0 +1,9 @@ +PS1="\u:\w\$ " + +export EDITOR="/data/data/com.termux/files/usr/bin/nvim" +export PATH="/data/data/com.termux/files/home/bin:${PATH}" + +alias ls='exa' +alias serve='gziphttp --serve-dir /storage/emulated/0/public --listen :8080' +alias tconf='git --git-dir /data/data/com.termux/files/home/.termux_config --work-tree /data/data/com.termux/files/home' +alias vim='nvim' diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..dd8fce4 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,45 @@ +[alias] + br = branch + ci = commit + co = checkout + df = diff + lg = "log --color --graph --pretty=format:'%Cred%h%Creset [%G?]%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" + ri = rebase --interactive --autosquash + st = status + +[branch] + autosetuprebase = always + +[color] + branch = auto + diff = auto + status = auto + +[commit] + gpgsign = false + +[core] + bare = false + excludesfile = ~/.gitignore_global + filemode = true + logallrefupdates = true + pager = less -F -X + repositoryformatversion = 0 + warnAmbiguousRefs = false + +[diff] + renames = true + +[push] + default = upstream + gpgSign = if-asked + +[receive] + denyNonFastForwards = true + +[rerere] + enabled = true + +[user] + email = knut@ahlers.me + name = Knut Ahlers diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..60c56b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.termux_config/ +storage/ diff --git a/.shortcuts/start_server b/.shortcuts/start_server new file mode 100755 index 0000000..65a4a27 --- /dev/null +++ b/.shortcuts/start_server @@ -0,0 +1,5 @@ +#!/data/data/com.termux/files/usr/bin/env bash + +exec /data/data/com.termux/files/home/bin/gziphttp \ + --serve-dir /storage/emulated/0/public \ + --listen :8080 diff --git a/.ssh/authorized_keys b/.ssh/authorized_keys new file mode 100644 index 0000000..efd644b --- /dev/null +++ b/.ssh/authorized_keys @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGVbYCO34iJikI+nLxpu2zjrvIh92GQqiss3Bkt+CSo4 loki