From 527f23b7ada60c60744afe649d0511420fe95936 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 7 May 2020 11:53:55 -0400 Subject: Remove mksh --- home/.mkshrc | 94 ------------------------------------------------------------ 1 file changed, 94 deletions(-) delete mode 100644 home/.mkshrc (limited to 'home') diff --git a/home/.mkshrc b/home/.mkshrc deleted file mode 100644 index a74be2b2..00000000 --- a/home/.mkshrc +++ /dev/null @@ -1,94 +0,0 @@ -set -o nounset -o noclobber -o braceexpand -o emacs -HISTFILE=~/.ksh_history HISTSIZE=5000 -export GPG_TTY=$(tty) - -function colonize { - IFS=: - print "$*" -} -systemPath=$PATH -PATH=$(colonize {,/usr{/local,/pkg,},/opt/pkg,$HOME/.local}/{s,}bin /usr/games) -CDPATH=:$HOME -export PWD - -export PAGER=less -export LESS=FRX -export MANSECT=2:3:1:8:6:5:7:4:9 -export EDITOR=vim -if whence nvim > /dev/null; then - EDITOR=nvim - alias vim=nvim - export MANPAGER="nvim -c 'set ft=man' -" -fi -FCEDIT=$EDITOR -export GIT_EDITOR=$EDITOR -export CLICOLOR=1 -export NETHACKOPTIONS='pickup_types:$!?+/=, color, DECgraphics' - -alias ls='ls -p' -alias ll='ls -lh' -alias bc='bc -l' -alias date=ddate -if [[ $(uname) = 'Linux' ]]; then - alias ls='ls --color=auto' grep='grep --color' rm='rm -I' -fi -alias gs='git status --short --branch || ls' gd='git diff' -alias gsh='git show' gl='git log --graph --pretty=log' -alias gco='git checkout' gb='git branch' gm='git merge' gst='git stash' -alias ga='git add' gmv='git mv' grm='git rm' -alias gc='git commit' gca='gc --amend' gt='git tag' -alias gp='git push' gu='git pull' gf='git fetch' -alias gr='git rebase' gra='gr --abort' grc='gr --continue' grs='gr --skip' -alias rand='openssl rand -base64 33' -alias private='eval "$(gpg -d ~/.private)"' - -function colors { - typeset sgr0=sgr0 setaf=setaf - [[ -f /usr/share/misc/termcap ]] && sgr0=me setaf=AF - set -A fg \ - $(tput $sgr0) $(tput $setaf 1) $(tput $setaf 2) $(tput $setaf 3) \ - $(tput $setaf 4) $(tput $setaf 5) $(tput $setaf 6) $(tput $setaf 7) -} -colors - -function branch { - typeset git=.git head - [[ -d $git ]] || git=../.git - [[ -d $git ]] || return - read head < $git/HEAD - if [[ $head = ref:* ]]; then - print ":${head#*/*/}" - else - typeset -L 7 head - print ":$head" - fi -} - -hostname=$(hostname) -whence realpath > /dev/null && HOME=$(realpath "$HOME") -function prompt { - typeset status=$? - typeset path title right color left cols - - [[ ${PWD#$HOME} != $PWD ]] && path="~${PWD#$HOME}" || path=$PWD - title=${path##*/} - right="${path}$(branch)" - - color=${fg[7]} - if [[ -n ${SSH_CLIENT:-} ]]; then - color=${fg[5]} - title="${hostname%%.*}:${title}" - fi - (( status )) && color=${fg[1]} - left="\01${color}\01\$\01${fg}\01 " - - [[ $TERM = xterm* ]] && title="\033]0;${title}\07" || title='' - [[ -n ${COLUMNS:-} ]] && cols=$COLUMNS || cols=$(tput cols) - while (( ${#right} > (cols / 2) )); do - right=${right#*/} - done - typeset -R $(( cols - 1 )) right - print "\01\r\01${title}\01\n\01${fg[7]}${right}${fg}\r\01${left}" -} - -PS1='$(prompt)' -- cgit 1.4.1 low clients to AUTHENTICATE if using a certJune McEnroe 2020-11-16Set client sockets non-blockingJune McEnroe 2020-11-14Swap localAccept parameter orderJune McEnroe 2020-11-14Only send shutdown QUIT and ERROR to registered clientsJune McEnroe 2020-11-14Make struct Client publicJune McEnroe 2020-11-13Wait for POLLIN to do client tls_handshakeJune McEnroe 2020-11-13Use a fixed size pollfd array in calicoJune McEnroe 2020-11-13Disallow / anywhere in server nameJune McEnroe 2020-11-12Check bounds of ClientHello extensions lengthJune McEnroe 2020-11-10Report paths in unveil errorsJune McEnroe 2020-10-24contrib/palaver: Use open_memstream instead of fmemopenJune McEnroe 2020-10-11Handle signals before the main loopJune McEnroe 2020-09-09Fix possibliy uninitialized error 2.0June McEnroe 2020-08-31Refactor reserialization and client self-producingJune McEnroe 2020-08-30Add chmod+chown to certbot exampleJune McEnroe 2020-08-30Rearrange bounce.c, move non-main mains below mainJune McEnroe 2020-08-30Sandbox pounce with unveil(2)June McEnroe 2020-08-28Refactor certificate loading and load all certs from config pathsJune McEnroe 2020-08-27Sandbox pounce with pledge(2)June McEnroe 2020-08-27Sandbox calico with pledge(2) and unveil(2)June McEnroe 2020-08-27Add support for OpenBSDJune McEnroe 2020-08-27Remove rc scriptsJune McEnroe 2020-08-27contrib/palaver: Fix documented database pathJune McEnroe 2020-08-27contrib/palaver: Remove rc scriptJune McEnroe 2020-08-27contrib/palaver: Fix database search and creationJune McEnroe 2020-08-27contrib/palaver: Use pounce's XDG directoryJune McEnroe 2020-08-27contrib/palaver: Only allow HTTPSJune McEnroe 2020-08-25Support the pounce_env rc variableJune McEnroe 2020-08-25Remove deprecated option namesJune McEnroe 2020-08-25Document configuration and data file searchJune McEnroe 2020-08-24Use dataOpen for save fileJune McEnroe 2020-08-24Use configOpen to load localCAJune McEnroe 2020-08-24Use configPath to load client cert/privJune McEnroe 2020-08-24Use configOpen in getopt_configJune McEnroe 2020-08-24Import xdg.c from catgirlJune McEnroe 2020-08-23Replace “RAND_bytes” by “getentropy”Issam E. Maghni 2020-08-16contrib/palaver: Add no message preview flagsJune McEnroe 2020-08-13contrib/palaver: Don't set channel for PMsJune McEnroe 2020-08-13Fix unintended interception of NICK after registrationJune McEnroe 2020-08-12Add Additional Components section to READMEJune McEnroe 2020-08-12Document -L / palaver optionJune McEnroe 2020-08-11contrib/palaver: Document service configurationJune McEnroe 2020-08-11contrib/palaver: Add install target and rc scriptJune McEnroe 2020-08-11contrib/palaver: Implement command and notificationsJune McEnroe