fix netbsd

This commit is contained in:
Diego Fernando Carrión 2024-09-29 18:19:54 +02:00
parent 5f10efa259
commit 71593a9b80
8 changed files with 49 additions and 22 deletions

View File

@ -57,16 +57,36 @@ then
fi
# ls
LS_TYPE=posix
if ls --color -d . >/dev/null 2>&1
then
LS_TYPE=gnu
elif ls -G -d . >/dev/null 2>&1
then
LS_TYPE=bsd
fi
if ! limited_terminal
then
if [ -x "$(command -v lsd)" ]
then
alias lls="$(which ls)"
alias ls=lsd
else
elif [ $LS_TYPE == gnu ]
then
alias ls='ls --color=auto'
elif [ $LS_TYPE == bsd ]
then
alias ls='ls -G'
fi
fi
alias la='ls -A'
alias ll='ls -lh'
alias lla='ls -lA'
if [ $LS_TYPE != posix ]
then
alias la='ls -A'
alias ll='ls -lh'
alias lla='ll -A'
else
alias la='ls -a'
alias ll='ls -lh'
alias lla='ll -a'
fi

View File

@ -23,5 +23,3 @@ fi
[ -f ~/.bash_profile.local ] && . "$HOME/.bash_profile.local"
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
. "$HOME/.atuin/bin/env"

View File

@ -30,12 +30,15 @@ HISTSIZE=4096
HISTFILESIZE=4096
# TERM
if [[ "$(basename "/"$(ps -o cmd -f -p $(cat /proc/$(echo $$)/stat | cut -d \ -f 4) | tail -1 | sed 's/ .*$//'))" == "cool-retro-term" ]]
if [[ $OSTYPE == "linux-gnu" ]]
then
if [[ "$(ps -o cmd -f -p $(cat /proc/$(echo $$)/stat | cut -d \ -f 4) | tail -1 | perl -pe 's/^\S+( -p (\w+))?/\2/')" == "VT220" ]]
if [[ "$(basename "/"$(ps -o cmd -f -p $(cat /proc/$(echo $$)/stat | cut -d \ -f 4) | tail -1 | sed 's/ .*$//'))" == "cool-retro-term" ]]
then
export TERM=vt220
unset COLORTERM
if [[ "$(ps -o cmd -f -p $(cat /proc/$(echo $$)/stat | cut -d \ -f 4) | tail -1 | perl -pe 's/^\S+( -p (\w+))?/\2/')" == "VT220" ]]
then
export TERM=vt220
unset COLORTERM
fi
fi
fi
if [ "$TERM" = "xterm-ghostty" ]
@ -165,7 +168,7 @@ fi
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
if [ -f "$HOME/.atuin/bin/env" ]
if [ -d $HOME/.atuin ]
then
source "$HOME/.atuin/bin/env"
eval "$(atuin init bash --disable-up-arrow)"

1
home/netbsd/ctwm.dirs Normal file
View File

@ -0,0 +1 @@
.config

View File

@ -0,0 +1,5 @@
#define twmtitle4_width 8
#define twmtitle4_height 24
static unsigned char twmtitle4_bits[] = {
0x00, 0x00, 0x55, 0x00, 0xAA, 0x00, 0x55, 0x00, 0xAA, 0x00, 0x55, 0x00,
0xAA, 0x00, 0x55, 0x00, 0xAA, 0x00, 0x55, 0x00, 0x00, 0x00 };

View File

@ -21,15 +21,16 @@ UseThreeDTitles
UseThreeDIconManagers
UseThreeDBorders
UseThreeDWMap
BorderResizeCursors
SunkFocusWindowTitle
TitleJustification "center"
# Fonts
TitleFont "-*-helvetica-bold-r-normal-*-17-*-*-*-*-*-iso10646-1"
ResizeFont "-*-helvetica-bold-r-normal-*-17-*-*-*-*-*-iso10646-1"
MenuFont "-*-helvetica-bold-r-normal-*-17-*-*-*-*-*-iso10646-1"
IconFont "-*-helvetica-bold-r-normal-*-14-*-*-*-*-*-iso10646-1"
IconManagerFont "-*-helvetica-bold-r-normal-*-14-*-*-*-*-*-iso10646-1"
TitleFont "-*-helvetica-*-r-normal-*-24-*-*-*-*-*-iso10646-1"
ResizeFont "-*-helvetica-*-r-normal-*-21-*-*-*-*-*-iso10646-1"
MenuFont "-*-helvetica-*-r-normal-*-20-*-*-*-*-*-iso10646-1"
IconFont "-*-helvetica-*-r-normal-*-21-*-*-*-*-*-iso10646-1"
IconManagerFont "-*-helvetica-*-r-normal-*-21-*-*-*-*-*-iso10646-1"
# Custom colours
Color {
@ -72,7 +73,8 @@ Cursors {
# Icon manager configuration
ShowIconManager
IconManagerGeometry "119-0+42"
#IconManagerGeometry "119-0+42"
IconManagerGeometry "149-0+42"
IconManagerDontShow {
"gkrellm"
"xclock"
@ -129,8 +131,8 @@ Button1 = : title : f.function "move-and-raise"
Button2 = : title : f.iconify
Button3 = : title : f.raiselower
Button1 = : frame : f.function "move-and-raise"
Button2 = : frame : f.resize
Button1 = : frame : f.resize
Button2 = : frame : f.function "move-and-raise"
Button3 = : frame : f.raiselower
Button1 = : iconmgr : f.function "deiconify-and-raise"

View File

@ -1,5 +1,5 @@
if ! [ -n "$fontsize" ]; then
fontsize=16
fontsize=20
fi
if [ -f $HOME/.profile ]; then

View File

@ -15,8 +15,6 @@ done
chmod 700 $HOME/.gnupg
sudo chown root:root -R etc/*/*/
for x in etc/{any,"${OSTYPE%%+([[:digit:].])}"}/*
do
if [[ -f ${x}.dirs ]]