diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-10-29 13:28:27 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-10-29 13:28:27 +0100 |
| commit | c7103c9a5cb83d17a0f0bcbc8057c03463bf8205 (patch) | |
| tree | 9c2c899b99a2eadae7f5ed251d41d301d3e8dd8f | |
| parent | cdb2f0fda7af95771cc24b4723d6d43b9e71d209 (diff) | |
update
| -rw-r--r-- | .bashrc | 20 | ||||
| -rw-r--r-- | .vimrc | 4 |
2 files changed, 17 insertions, 7 deletions
@@ -19,6 +19,8 @@ stty -ixon # disable Ctrl-S # Save and reload the history after each command finishes #export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" +[ "$TERM" = xterm-256color ] && export COLORTERM=truecolors + # export GNUTERM='sixelgd enhanced truecolor font "arial,9"' # OS=${OS:-$(~/bin/os)} @@ -30,7 +32,8 @@ case $OS in [ "$OS" = arch ] || trap 'printf "\e]2;%s\a" "$TERM_TAG ${BASH_COMMAND%ps1}"' DEBUG ;; (Darwin) - alias ibrew='arch -x86_64 /usr/local/bin/brew' + # alias ibrew='arch -x86_64 /usr/local/bin/brew' + source /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 @@ -50,6 +53,7 @@ export -f d p [ "$OS" = alpine ] && export MANPAGER='vim +MANPAGER --not-a-term' export LESS=iXFRx4 +# export SHELLCHECK_OPTS='-S warning' #export BACKUP=bip:/home/backup/marc@$(hostname -s) @@ -73,11 +77,15 @@ 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 ww='vi ~/Wiki/home_page.md' +#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' +alias hd='hexdump -C' # yaegi debug export YAEGI_DOT_CMD='dotty -' @@ -99,7 +107,7 @@ meteo() { curl -H "Accept-Language: fr" --compressed "$request" } -eval "$(fzf --bash)" >/dev/null +#eval "$(fzf --bash)" >/dev/null # Handle missing commands, unless already provided. type -t command_not_found_handle >/dev/null || command_not_found_handle() { @@ -107,7 +115,7 @@ type -t command_not_found_handle >/dev/null || command_not_found_handle() { case $OS in (alpine) pkgs=$(apk list -Pq "cmd:$1" | awk '{print $2}') ;; (arch) pkgs=$(pkgfile -b "$1") ;; - (Darwin) pkgs=$(brew which-formula "$1") ;; + (Darwin) # pkgs=$(brew which-formula "$1") ;; esac echo "$1: command not found${pkgs:+. Present in: $pkgs}" >&2 } @@ -124,8 +124,10 @@ endfunction noremap <leader><leader> :call CloseOnLast()<cr> " vim-go settings -let g:go_gopls_enabled = 0 +" let g:go_gopls_enabled = 0 +let g:go_gopls_enabled = 1 let g:go_def_mode = 'godef' +" let g:go_referrers_mode = 'godef' let g:go_fmt_command = 'goimports' let g:go_imports_mode = 'goimports' let g:go_rename_command = 'gorename' |
