linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit 00d24bb1361334869bf9a1406e8d62c52388a188 parent dd7ea52cf5f7898a51ead3b7328aca87ef82bba6 Author: Jul <jul@9o.is> Date: Thu, 6 Nov 2025 00:42:11 -0500 remove yash Diffstat:
| D | pkg/yash/build | | | 28 | ---------------------------- |
| D | pkg/yash/config.h | | | 52 | ---------------------------------------------------- |
| D | pkg/yash/config/rc | | | 13 | ------------- |
| D | pkg/yash/config/rc.d/00-general | | | 154 | ------------------------------------------------------------------------------- |
| D | pkg/yash/config/rc.d/10-fzy | | | 15 | --------------- |
| D | pkg/yash/config/rc.d/10-git | | | 35 | ----------------------------------- |
| D | pkg/yash/repo | | | 1 | - |
7 files changed, 0 insertions(+), 298 deletions(-)
diff --git a/pkg/yash/build b/pkg/yash/build @@ -1,28 +0,0 @@ -#!/bin/sh - -# required: -# ncurses-devel -# asciidoc - -repodir="$srcdir/repo" - -( - cd $repodir - ./configure --prefix=/usr -) - -rm -rf "$outdir" -cp "$srcdir/config.h" "$repodir" - -make -C "$repodir" -make DESTDIR="$outdir" -C "$repodir" install - -configdir="$outdir/home/user/.config/yash" -cp -r "$srcdir"/config/* "$configdir" - -if [ "$local_install" == "true" ]; then - sudo make -C "$repodir" install - - configdir="/home/user/.config/yash" - cp -r "$srcdir"/config/* "$configdir" -fi diff --git a/pkg/yash/config.h b/pkg/yash/config.h @@ -1,52 +0,0 @@ -#define NDEBUG 1 -#define _POSIX_C_SOURCE 200809L -#define _XOPEN_SOURCE 700 -#define YASH_ENABLE_SOCKET 1 -#define HAVE_NGETTEXT 1 -#define HAVE_GETTEXT 1 -#define HAVE_CURSES_H 1 -#define HAVE_TERM_H 1 -#define YASH_ENABLE_LINEEDIT 1 -#define HAVE_PROC_SELF_EXE 1 -#define HAVE_STRNLEN 1 -#define HAVE_STRDUP 1 -#define HAVE_WCSNLEN 1 -#define HAVE_WCSDUP 1 -#define HAVE_WCSCASECMP 1 -#define HAVE_WCSNRTOMBS 1 -#define HAVE_WCSTOLD 1 -#define HAVE_WCWIDTH 1 -#define HAVE_S_ISVTX 1 -#define UNSETENV_RETURNS_INT 1 -#define HAVE_ST_ATIM 1 -#define HAVE_ST_MTIM 1 -#define HAVE_WCONTINUED 1 -#define HAVE_FACCESSAT 1 -#define HAVE_STRSIGNAL 1 -#define HAVE_GETPWENT 1 -#define HAVE_PW_GECOS 1 -#define HAVE_GETGRENT 1 -#define HAVE_GETHOSTENT 1 -#define HAVE_PATHS_H 1 -#define GETCWD_AUTO_MALLOC 1 -#define HAVE_TIOCGWINSZ 1 -#define YASH_ENABLE_ARRAY 1 -#define YASH_ENABLE_DOUBLE_BRACKET 1 -#define YASH_ENABLE_DIRSTACK 1 -#define YASH_ENABLE_HELP 1 -#define YASH_ENABLE_HISTORY 1 -#define YASH_ENABLE_PRINTF 1 -#define YASH_ENABLE_TEST 1 -#define HAVE_RLIMIT 1 -#define YASH_ENABLE_ULIMIT 1 -#define HAVE_RLIM_SAVED_CUR 1 -#define HAVE_RLIM_SAVED_MAX 1 -#define HAVE_RLIMIT_AS 1 -#define HAVE_RLIMIT_LOCKS 1 -#define HAVE_RLIMIT_MEMLOCK 1 -#define HAVE_RLIMIT_MSGQUEUE 1 -#define HAVE_RLIMIT_NICE 1 -#define HAVE_RLIMIT_NPROC 1 -#define HAVE_RLIMIT_RSS 1 -#define HAVE_RLIMIT_RTPRIO 1 -#define HAVE_RLIMIT_SIGPENDING 1 diff --git a/pkg/yash/config/rc b/pkg/yash/config/rc @@ -1,13 +0,0 @@ -rcd=~/.config/yash/rc.d - -if [ -d $rcd ]; then - for rc in $rcd/*; do - if [ -f "$rc" ]; then - . "$rc" - fi - done -fi - -unset rc rcd - -# vim: set et sw=2 sts=2 tw=78 ft=sh: diff --git a/pkg/yash/config/rc.d/00-general b/pkg/yash/config/rc.d/00-general @@ -1,154 +0,0 @@ -set --brace-expand -set --extended-glob -set --no-clobber -set --no-unset -set --hist-space -set --notify-le -set --le-no-conv-meta -set --le-predict - -bindkey --vi-insert --vi-command '\^[[1;5C' forward-viword # C-<Right> -bindkey --vi-insert --vi-command '\^[[1;6C' forward-bigword # C-S-<Right> -bindkey --vi-insert --vi-command '\^[[1;5D' backward-viword # C-<Left> -bindkey --vi-insert --vi-command '\^[[1;6D' backward-bigword # C-S-<Left> -bindkey --vi-insert '\^O' clear-candidates -bindkey --vi-insert '\^L' clear-and-redraw-all -bindkey --vi-command '\^L' clear-and-redraw-all - -alias -- -='cd - >/dev/null' -alias l='ls -alhGL --group-directories-first --time-style "+%Y-%m-%d"' ll='l' -alias tree='tree -a -L 4 --filesfirst --gitignore' -alias h='fc -l' -alias j='jobs' -alias o='xdg-open' -alias g='grep' -alias --global L='|$PAGER' -alias --global N='>/dev/null 2>&1' N1='>/dev/null' N2='2>/dev/null' - -# define some basic variables -export PAGER=less -export EDITOR=vis - -: ${FCEDIT:=$EDITOR} -: ${LOGNAME:=$(logname)} - -# alias-like functions -df() if [ -t 0 ]; then command df -h "$@"; else command df "$@"; fi -du() if [ -t 0 ]; then command du -h "$@"; else command du "$@"; fi -mkdir() if [ -t 0 ]; then command mkdir -p "$@"; else command mkdir "$@"; fi -sh() { yash --posix "$@"; } -yash() { command yash "$@"; } - -vi() { - if [ ! "$@" ] || [ -d "$1" ]; then - command fe -r $EDITOR "$@"; - else - command $EDITOR "$@"; - fi -} - -# set up history -HISTFILE=~/.local/state/yash/history -HISTSIZE=5000 -! [ -d "${HISTFILE%/*}" ] && mkdir -p "${HISTFILE%/*}" - -# disable confusing treatment of arguments in the echo command -: ${ECHO_STYLE:=RAW} - -# ensure job control works as expected -case $- in (*m*) - trap - TSTP TTIN TTOU -esac - -# if the terminal supports color... -if [ "$(tput colors 2>/dev/null || echo 0)" -ge 8 ]; then - - # make command output colorful - if ls --color=auto -d / >/dev/null 2>&1; then - ls() { command ls --color=auto "$@"; } - fi - if grep --color=auto -q X <<<X 2>/dev/null; then - grep() { command grep --color=auto "$@"; } - fi - if ggrep --color=auto -q X <<<X 2>/dev/null; then - ggrep() { command ggrep --color=auto "$@"; } - fi - -fi - -# initialize event handlers -COMMAND_NOT_FOUND_HANDLER=() -PROMPT_COMMAND=() -POST_PROMPT_COMMAND=() -YASH_AFTER_CD=() - -# when a directory name is entered as a command, treat as "cd" -_autocd() -if [ -d "$1" ]; then - HANDLED=true - cd -- "$@" - break -i -fi -COMMAND_NOT_FOUND_HANDLER=("$COMMAND_NOT_FOUND_HANDLER" '_autocd "$@"') - -# treat command names starting with % as "fg" -_autofg() -if [ $# -eq 1 ]; then - case $1 in (%*) - HANDLED=true - fg "$1" - break -i - esac -fi -COMMAND_NOT_FOUND_HANDLER=("$COMMAND_NOT_FOUND_HANDLER" '_autofg "$@"') - -# print file type when executing non-executable files -_file_type() -if [ -e "$1" ] && ! [ -d "$1" ]; then - file -- "$1" -fi -COMMAND_NOT_FOUND_HANDLER=("$COMMAND_NOT_FOUND_HANDLER" '_file_type "$@"') - -_update_short_pwd() { - local path="${PWD/$HOME/\~}" - local result="" - - if [ "$path" = "/" ] || [ "$path" = "~" ]; then - _short_pwd="$path" - return - fi - - if [ "${path[1]}" = "~" ]; then - result="~" - fi - - while [ "${path#[/~]*}" != "$path" ]; do - path="${path#[/~]*}" - done - - while [ -n "$path" ]; do - component="${path%%/*}" - - if [ "$path" = "$component" ]; then - result="$result/$component" - break - fi - - if [ -n "$component" ]; then - if [ "${component[1]}" = "." ]; then - result="$result/.${component[2]}" - else - result="$result/${component[1]}" - fi - fi - - path="${path#*/}" - done - _short_pwd="$result" -} -PROMPT_COMMAND=("$PROMPT_COMMAND" '_update_short_pwd') - -YASH_PS1='\fb.${_short_pwd}\fd.${{?:/0/}:+\\fr. [$?]\\fd.}> ' -YASH_PS1P='\fu.' - -# vim: set et sw=2 sts=2 tw=78 ft=sh: diff --git a/pkg/yash/config/rc.d/10-fzy b/pkg/yash/config/rc.d/10-fzy @@ -1,15 +0,0 @@ -if command --identify fzy >/dev/null 2>&1; then - alias sf='vi $(find -type f | fzy)' - alias sd='cd $(find -type d | fzy)' - alias skill='ps axo pid,user,pcpu,pmem,stat,comm | fzy | awk "{print \$1}" | xargs kill' - - if command --identify git >/dev/null 2>&1; then - alias sga='git diff --name-only | fzy --prompt="Git Add: " | xargs git add' - alias sgap='git diff --name-only | fzy --prompt="Git Add Patch: " | xargs git add --patch' - alias sgr='git diff --name-only | fzy --prompt="Git Restore: " | xargs git restore' - alias sgrs='git diff --name-only --cached | fzy --prompt="Git Restore Staged: " | xargs git restore --staged' - alias sgco='git log --oneline | fzy --prompt="Git Checkout: " | awk "{print \$1}" | xargs git checkout' - alias sgcor='git for-each-ref --format="%(refname) %(subject)" | fzy --prompt="Git Checkout: " | awk "{print \$1}" | xargs git checkout' - alias sgrbi='git log --oneline | fzy --prompt="Git Rebase: " | awk "{print \$1}" | xargs git rebase -i' - fi -fi diff --git a/pkg/yash/config/rc.d/10-git b/pkg/yash/config/rc.d/10-git @@ -1,35 +0,0 @@ -if command --identify git >/dev/null 2>&1; then - alias gs='git status --short' - alias gl='git lg' - alias gd='git diff' - alias gdc='git diff --cached' - alias gdcw='git diff --cached --word-diff' - alias gds='git diff --staged' - alias gdu='git diff @{upstream}' - alias ga='git add' - alias gaa='git add --all' - alias gap='git add --patch' - alias gr='git restore' - alias grs='git restore --staged' - alias gc='git commit -v' - alias gca='git commit -v -a' - alias gc!='git commit -v --no-edit --amend' - alias gca!='git commit -v -a --no-edit --amend' - alias gcl='git clone' - alias gco='git checkout' - alias gcob='git checkout -b' - alias gcom='git checkout -b main' - alias gf='git fetch' - alias gfa='git fetch --all --prune' - alias gfo='git fetch origin' - alias gp='git push' - alias gpd='git push --dry-run' - alias gpf!='git push --force' - alias grb='git rebase' - alias grba='git rebase --abort' - alias grbc='git rebase --continue' - alias grbm='git rebase origin/main' - alias grbi='git rebase -i' - alias grm='git rm' - alias grmc='git rm --cached' -fi diff --git a/pkg/yash/repo b/pkg/yash/repo @@ -1 +0,0 @@ -Subproject commit 97f4858970e7cbf790452a7b3d578ecb75a8ec96