From 3df8de1ec7d97850f9a24e7a8e3e2a496d012fdf Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Thu, 2 May 2024 13:14:26 +1200 Subject: [PATCH] ksh: init config --- .kshrc | 24 ++++++++++++++++++++++++ .profile | 5 +++++ sync.sh | 3 +++ 3 files changed, 32 insertions(+) create mode 100644 .kshrc create mode 100644 .profile diff --git a/.kshrc b/.kshrc new file mode 100644 index 0000000..4e8aab0 --- /dev/null +++ b/.kshrc @@ -0,0 +1,24 @@ +PATH="$PATH:/home/jeremy/.local/bin:/home/jeremy/.nix-profile/bin:/nix/var/nix/profiles/default/bin" +PS1='\033[1;31m\u\033[0m \w \$ ' +PS2='+ ' +HISTFILE="$HOME"/.ksh-history +HISTSIZE=1000000 + +alias aerc="EDITOR=vim aerc" +alias make=bmake +alias vi="emacsclient -nw" +alias npi="nix profile install" +alias npr="nix profile remove" +alias npl="nix profile list" +alias sway="dbus-launch --exit-with-session sway" +alias pmx="pulseaudio --start && pulsemixer" + +upload () { + rsync "$1" root@baxter.local:/srv/www/sshots/ + printf 'http://%s/sshots/%s' "$(curl ifconfig.co | xargs)" "$(basename "$1")" | wl-copy +} + +set -o emacs + +export XDG_RUNTIME_DIR=/tmp/rt/"$(id -u)" +mkdir -p "$XDG_RUNTIME_DIR" diff --git a/.profile b/.profile new file mode 100644 index 0000000..0342104 --- /dev/null +++ b/.profile @@ -0,0 +1,5 @@ +export ENV=~/.kshrc +export EDITOR="emacsclient -c" +export MANPATH="$(man -w)":"$HOME"/.nix-profile/share/man +export PATH="$PATH":"$HOME"/.local/bin +export TERMINAL=foot diff --git a/sync.sh b/sync.sh index ebc5f63..6947fa9 100755 --- a/sync.sh +++ b/sync.sh @@ -6,6 +6,9 @@ cd "$(dirname $0)" cp "$HOME"/.gitconfig . cp "$HOME"/.gitignore . +cp "$HOME"/.kshrc . +cp "$HOME"/.profile . + mkdir -p .emacs.d/ cp "$HOME"/.emacs.d/init.el .emacs.d/init.el mkdir -p .config/aerc/