feat(system): configure nano (-FEDSMAGic/max%_T2) as EDITOR, less -RXF as PAGER, add ed/rlwrap/less, and remove vim
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -0,0 +1,50 @@
|
||||
# Bananarchy Linux system-wide nano configuration
|
||||
# Equivalent to: nano -FEDSMAGic/max%_T2
|
||||
|
||||
set newbuffer
|
||||
set tabstospaces
|
||||
set boldtext
|
||||
set softwrap
|
||||
set trimblanks
|
||||
set smarthome
|
||||
set locking
|
||||
set autoindent
|
||||
set constantshow
|
||||
set mouse
|
||||
set atblanks
|
||||
set nohelp
|
||||
set stateflags
|
||||
set minibar
|
||||
set tabsize 2
|
||||
|
||||
# Modern keybindings (-/ / --modernbindings)
|
||||
bind ^X cut main
|
||||
bind ^C copy main
|
||||
bind ^V paste all
|
||||
bind ^Q exit all
|
||||
bind ^S savefile main
|
||||
bind ^W writeout main
|
||||
bind ^O insert main
|
||||
bind ^H help all
|
||||
bind ^H exit help
|
||||
bind ^F whereis all
|
||||
bind ^G findnext all
|
||||
bind ^B wherewas all
|
||||
bind ^D findprevious all
|
||||
bind ^R replace main
|
||||
unbind ^U all
|
||||
unbind ^N main
|
||||
unbind ^Y all
|
||||
unbind M-J main
|
||||
unbind M-T main
|
||||
bind ^A mark main
|
||||
bind ^P location main
|
||||
bind ^T gotoline main
|
||||
bind ^T gotodir browser
|
||||
bind ^T cutrestoffile execute
|
||||
bind ^L linter execute
|
||||
bind ^E execute main
|
||||
bind ^K "{mark}{end}{zap}" main
|
||||
bind ^U "{mark}{home}{zap}" main
|
||||
bind ^Z undo main
|
||||
bind ^Y redo main
|
||||
@@ -0,0 +1,27 @@
|
||||
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
export EDITOR=nano
|
||||
export VISUAL=nano
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
umask 022
|
||||
|
||||
# use nicer PS1 for bash and busybox ash
|
||||
if [ -n "$BASH_VERSION" -o "$BB_ASH_VERSION" ]; then
|
||||
PS1='\h:\w\$ '
|
||||
# use nicer PS1 for zsh
|
||||
elif [ -n "$ZSH_VERSION" ]; then
|
||||
PS1='%m:%~%# '
|
||||
# set up fallback default PS1
|
||||
else
|
||||
: "${HOSTNAME:=$(hostname)}"
|
||||
PS1='${HOSTNAME%%.*}:$PWD'
|
||||
[ "$(id -u)" -eq 0 ] && PS1="${PS1}# " || PS1="${PS1}\$ "
|
||||
fi
|
||||
|
||||
for script in /etc/profile.d/*.sh ; do
|
||||
if [ -r "$script" ] ; then
|
||||
. "$script"
|
||||
fi
|
||||
done
|
||||
unset script
|
||||
@@ -105,7 +105,10 @@ _sxmo_load_environments() {
|
||||
|
||||
export BEMENU_OPTS="${BEMENU_OPTS:---fn "Fira Code 9" -H 22 -B 2 --hp 4 -s --no-overlap --fixed-height --scrollbar none --cw 2 --bdr "#005577" --tb "#383838" --tf "#aaaaaa" --fb "#383838" --ff "#ffffff" --cb "#ffffff" --cf "#383838" --nb "#1c1c1c" --nf "#ffffff" --ab "#1c1c1c" --af "#ffffff" --hb "#005577" --hf "#ffffff" -w -i}"
|
||||
|
||||
export EDITOR="${EDITOR:-vim}"
|
||||
export EDITOR="${EDITOR:-nano}"
|
||||
export VISUAL="${VISUAL:-nano}"
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
export BROWSER="${BROWSER:-firefox}"
|
||||
export SHELL="${SHELL:-/bin/sh}"
|
||||
|
||||
|
||||
@@ -71,11 +71,15 @@ export SXMO_RINGNUMBER=10
|
||||
export SXMO_DEFAULT_DRAFT="Enter new message here."
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export EDITOR="nano"
|
||||
export VISUAL="nano"
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
export SXMO_WM="dwm"
|
||||
export SXMO_MENU="dmenu"
|
||||
export SXMO_TERMINAL="st"
|
||||
export DMENU_WRAP_AROUND=1
|
||||
export SXMO_DMENU_PORTRAIT_LINES=12
|
||||
export SXMO_DMENU_PORTRAIT_LINES=9
|
||||
export SXMO_DMENU_LANDSCAPE_LINES=8
|
||||
export SXMO_DISABLE_LEDS=1
|
||||
export SXMO_NO_VIRTUAL_KEYBOARD=1
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# Bananarchy Linux system-wide nano configuration
|
||||
# Equivalent to: nano -FEDSMAGic/max%_T2
|
||||
|
||||
set newbuffer
|
||||
set tabstospaces
|
||||
set boldtext
|
||||
set softwrap
|
||||
set trimblanks
|
||||
set smarthome
|
||||
set locking
|
||||
set autoindent
|
||||
set constantshow
|
||||
set mouse
|
||||
set atblanks
|
||||
set nohelp
|
||||
set stateflags
|
||||
set minibar
|
||||
set tabsize 2
|
||||
|
||||
# Modern keybindings (-/ / --modernbindings)
|
||||
bind ^X cut main
|
||||
bind ^C copy main
|
||||
bind ^V paste all
|
||||
bind ^Q exit all
|
||||
bind ^S savefile main
|
||||
bind ^W writeout main
|
||||
bind ^O insert main
|
||||
bind ^H help all
|
||||
bind ^H exit help
|
||||
bind ^F whereis all
|
||||
bind ^G findnext all
|
||||
bind ^B wherewas all
|
||||
bind ^D findprevious all
|
||||
bind ^R replace main
|
||||
unbind ^U all
|
||||
unbind ^N main
|
||||
unbind ^Y all
|
||||
unbind M-J main
|
||||
unbind M-T main
|
||||
bind ^A mark main
|
||||
bind ^P location main
|
||||
bind ^T gotoline main
|
||||
bind ^T gotodir browser
|
||||
bind ^T cutrestoffile execute
|
||||
bind ^L linter execute
|
||||
bind ^E execute main
|
||||
bind ^K "{mark}{end}{zap}" main
|
||||
bind ^U "{mark}{home}{zap}" main
|
||||
bind ^Z undo main
|
||||
bind ^Y redo main
|
||||
@@ -1,10 +1,14 @@
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
export EDITOR=nano
|
||||
export VISUAL=nano
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
export SXMO_WM=dwm
|
||||
export SXMO_MENU=dmenu
|
||||
export SXMO_TERMINAL=st
|
||||
export DMENU_WRAP_AROUND=1
|
||||
export SXMO_DMENU_PORTRAIT_LINES=12
|
||||
export SXMO_DMENU_PORTRAIT_LINES=9
|
||||
export SXMO_DMENU_LANDSCAPE_LINES=8
|
||||
export SXMO_DISABLE_LEDS=1
|
||||
export SXMO_NO_VIRTUAL_KEYBOARD=1
|
||||
|
||||
@@ -71,11 +71,15 @@ export SXMO_RINGNUMBER=10
|
||||
export SXMO_DEFAULT_DRAFT="Enter new message here."
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export EDITOR="nano"
|
||||
export VISUAL="nano"
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
export SXMO_WM="dwm"
|
||||
export SXMO_MENU="dmenu"
|
||||
export SXMO_TERMINAL="st"
|
||||
export DMENU_WRAP_AROUND=1
|
||||
export SXMO_DMENU_PORTRAIT_LINES=12
|
||||
export SXMO_DMENU_PORTRAIT_LINES=9
|
||||
export SXMO_DMENU_LANDSCAPE_LINES=8
|
||||
export SXMO_DISABLE_LEDS=1
|
||||
export SXMO_NO_VIRTUAL_KEYBOARD=1
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# Bananarchy Linux system-wide nano configuration
|
||||
# Equivalent to: nano -FEDSMAGic/max%_T2
|
||||
|
||||
set newbuffer
|
||||
set tabstospaces
|
||||
set boldtext
|
||||
set softwrap
|
||||
set trimblanks
|
||||
set smarthome
|
||||
set locking
|
||||
set autoindent
|
||||
set constantshow
|
||||
set mouse
|
||||
set atblanks
|
||||
set nohelp
|
||||
set stateflags
|
||||
set minibar
|
||||
set tabsize 2
|
||||
|
||||
# Modern keybindings (-/ / --modernbindings)
|
||||
bind ^X cut main
|
||||
bind ^C copy main
|
||||
bind ^V paste all
|
||||
bind ^Q exit all
|
||||
bind ^S savefile main
|
||||
bind ^W writeout main
|
||||
bind ^O insert main
|
||||
bind ^H help all
|
||||
bind ^H exit help
|
||||
bind ^F whereis all
|
||||
bind ^G findnext all
|
||||
bind ^B wherewas all
|
||||
bind ^D findprevious all
|
||||
bind ^R replace main
|
||||
unbind ^U all
|
||||
unbind ^N main
|
||||
unbind ^Y all
|
||||
unbind M-J main
|
||||
unbind M-T main
|
||||
bind ^A mark main
|
||||
bind ^P location main
|
||||
bind ^T gotoline main
|
||||
bind ^T gotodir browser
|
||||
bind ^T cutrestoffile execute
|
||||
bind ^L linter execute
|
||||
bind ^E execute main
|
||||
bind ^K "{mark}{end}{zap}" main
|
||||
bind ^U "{mark}{home}{zap}" main
|
||||
bind ^Z undo main
|
||||
bind ^Y redo main
|
||||
@@ -1,10 +1,14 @@
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
export EDITOR=nano
|
||||
export VISUAL=nano
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
export SXMO_WM=dwm
|
||||
export SXMO_MENU=dmenu
|
||||
export SXMO_TERMINAL=st
|
||||
export DMENU_WRAP_AROUND=1
|
||||
export SXMO_DMENU_PORTRAIT_LINES=12
|
||||
export SXMO_DMENU_PORTRAIT_LINES=9
|
||||
export SXMO_DMENU_LANDSCAPE_LINES=8
|
||||
export SXMO_DISABLE_LEDS=1
|
||||
export SXMO_NO_VIRTUAL_KEYBOARD=1
|
||||
|
||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
@@ -71,11 +71,15 @@ export SXMO_RINGNUMBER=10
|
||||
export SXMO_DEFAULT_DRAFT="Enter new message here."
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export EDITOR="nano"
|
||||
export VISUAL="nano"
|
||||
export PAGER="less -RXF"
|
||||
export LESS="-RXF"
|
||||
export SXMO_WM="dwm"
|
||||
export SXMO_MENU="dmenu"
|
||||
export SXMO_TERMINAL="st"
|
||||
export DMENU_WRAP_AROUND=1
|
||||
export SXMO_DMENU_PORTRAIT_LINES=12
|
||||
export SXMO_DMENU_PORTRAIT_LINES=9
|
||||
export SXMO_DMENU_LANDSCAPE_LINES=8
|
||||
export SXMO_DISABLE_LEDS=1
|
||||
export SXMO_NO_VIRTUAL_KEYBOARD=1
|
||||
|
||||
@@ -225,10 +225,6 @@ write_line_app waydroid "$icon_and Waydroid" "waydroid show-full-ui"
|
||||
write_line_app weechat "$icon_msg Weechat" "sxmo_terminal.sh weechat"
|
||||
write_line_app wike "$icon_bok Wike" "wike"
|
||||
write_line_app w3m "$icon_glb W3m" "sxmo_terminal.sh w3m duck.com"
|
||||
write_line_app vim "$icon_vim Vim" "sxmo_terminal.sh vim"
|
||||
write_line_app vimb "$icon_glb Vimb" "vimb"
|
||||
write_line_app vimb "$icon_glb Vimb (Incognito)" "vimb -i"
|
||||
write_line_app vis "$icon_vim Vis" "sxmo_terminal.sh vis"
|
||||
write_line_app vlc "$icon_vlc Vlc" "vlc"
|
||||
write_line_app vte-2.91 "$icon_trm VTE 3" "vte-2.91"
|
||||
write_line_app vte-2.91-gtk4 "$icon_trm VTE 3 (GTK-4)" "vte-2.91-gtk4"
|
||||
|
||||
Reference in New Issue
Block a user