From 05486bccaf22959c749e8184a286d3b2703f23a8 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 17 Nov 2025 13:33:24 +0100 Subject: Update --- .bashrc | 14 ++++++++------ .nexrc | 1 + .profile | 39 ++------------------------------------- 3 files changed, 11 insertions(+), 43 deletions(-) diff --git a/.bashrc b/.bashrc index bd08795..e420ffd 100644 --- a/.bashrc +++ b/.bashrc @@ -3,6 +3,7 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return +export CDPATH=.:.. export PAGER=less export EDITOR=vim export MANPAGER='vim +MANPAGER --not-a-term -' @@ -33,7 +34,8 @@ case $OS in ;; (Darwin) # alias ibrew='arch -x86_64 /usr/local/bin/brew' - source /opt/local/share/fzf/shell/completion.bash + . /opt/local/etc/profile.d/bash_completion.sh + . /opt/local/share/fzf/shell/completion.bash alias ls='ls -GF' ll='ls -AlGFhv' alias ldd='otool -L' trap 'printf "\e]2;%s\a" "$TERM_TAG ${BASH_COMMAND%update_terminal_cwd}"' DEBUG @@ -77,11 +79,11 @@ alias more='less' alias oman='MANPAGER= man' alias rg='rg --smart-case' alias rot13='tr A-Za-z N-ZA-Mn-za-m' -#alias vi='vim' -#alias view='vim -R' -alias vi='nvi' -alias view='nview' -alias ex='nex' +alias vi='vim' +alias view='vim -R' +#alias vi='nvi' +#alias view='nview' +#alias ex='nex' alias ww='vim ~/Wiki/home_page.md' alias y='rlwrap yaegi' alias mp='rlwrap mp' diff --git a/.nexrc b/.nexrc index 6ae2673..3368ed0 100644 --- a/.nexrc +++ b/.nexrc @@ -22,4 +22,5 @@ map gn /[A-Z][A-Za-z0-9_]+[A-Z]/ " Jump to go identifier definition using dynamic tag. map gd D:+1,$d :1,$!wc -c 0cw:!gotag % "yddu..@y :ta _ +" Ctrl-$ to tag jump map [27;5;36~  diff --git a/.profile b/.profile index f9ec18d..2ca9eb6 100644 --- a/.profile +++ b/.profile @@ -1,37 +1,2 @@ -# ~/.profile - -export OS=$(~/bin/os) - -case $OS in -(arch|alpine) - PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin - export XDG_RUNTIME_DIR=/run/user/$(id -u) - ;; -(fedora-asahi-remix) - PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:~/go/bin - export XKB_DEFAULT_LAYOUT=us XKB_DEFAULT_VARIANT=intl - ;; -(Darwin) - PATH=~/bin:~/mu/bin:/opt/homebrew/bin:/opt/homebrew/opt/python/libexec/bin:$PATH:~/go/bin:~/.cargo/bin:~/.local/bin - export REPLYTO='mvertes@free.fr' - export LANG=en_US.UTF-8 - . /opt/homebrew/etc/profile.d/bash_completion.sh - tabs -4 - export HOMEBREW_NO_ANALYTICS=1 - ;; -(termux) - PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin - ;; -esac - -if [ -z "$SSH_AUTH_SOCK" ]; then - eval "$(ssh-agent -s)" - ssh-add -fi - -case $SHELL in -(*/ash) export ENV=~/.shrc ;; -(*/bash) type -t p >/dev/null || . ~/.bashrc ;; -esac - -[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true +PATH=$PATH:/opt/local/bin:/opt/local/sbin:~/bin:~/go/bin:~/Library/Python/3.9/bin +export LANG=en_US.UTF-8 -- cgit v1.2.3