diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-01-21 15:02:16 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-01-21 15:02:16 +0100 |
| commit | caec9ce908ae967238bcba5df96a73287b512ddd (patch) | |
| tree | 31c42aadc659e82e4e182b05228eccbb355460b6 /.bashrc | |
| parent | 981054fa3d6b446b5697ad1e95fd9d89a17b7297 (diff) | |
fixup
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 31 |
1 files changed, 20 insertions, 11 deletions
@@ -18,16 +18,30 @@ 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" +case $(uname -o) in +(Darwin) + export GNUTERM='sixelgd enhanced truecolor size 1600,1200 font "arial,9"' + alias ls='ls -GF' + alias ll='ls -AlGFhv' + alias ldd='otool -L' + ;; +(GNU/Linux|Linux) + export GNUTERM='sixelgd enhanced truecolor font "arial,9"' + alias ls='ls --color=auto -v' + alias ll='ls -AlFhv' + ;; +esac + # Change font for urxvt. Examples: # cf 9x15 # cf xft:Monospace:size=12 # cf "xft:Bitstream Vera Sans Mono:size=8:antialias=true # cf() { printf '\e]710;%s\007' "${1:-fixed}"; } -p() { [ -f "$1" -a ! -x "$1" ] && less -XF $1 || "$@" 2>&1 | less -XF ; } +p() { [ -f "$1" -a ! -x "$1" ] && less "$1" || "$@" 2>&1 | less; } export -f p -fixab() { printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 "$1"; } +fixab() { printf "\x1f\x8b\x08\x00\x00\x00\x00\x00"; tail -c +25 "$1"; } # Less: use colors in place of bold/underline # red: 1, green: 2, yellow: 3, blue: 4, magenta: 5, cyan: 6, grey: 7, black: 8 @@ -37,12 +51,9 @@ fixab() { printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 "$1"; } #export LESS_TERMCAP_ue=$'\E[0m' # end underline export LESS=iXFRx4 -export BACKUP=bip:/home/backup/marc@$(hostname -s) +#export BACKUP=bip:/home/backup/marc@$(hostname -s) export LESS=XFRx4 -# gnuplot display in terminal -export GNUTERM='sixelgd enhanced truecolor font "arial,9"' - # Stopwatch alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date' @@ -50,8 +61,6 @@ alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date #alias cl='cf xft:Mono:size=12' #alias cp='cp --reflink' -alias ls='ls --color=auto -v' -alias ll='ls -AlFhv' alias more='less' alias vi='vim' alias view='vim -R' @@ -74,12 +83,12 @@ alias ww='vi ~/Wiki/home_page.md' alias s='vi ~/Wiki/scratch.md' alias dotfiles='git --git-dir=$HOME/dotfiles --work-tree=$HOME' -alias by='go build ./cmd/yaegi' -alias cy='cd ~/go/src/github.com/traefik/yaegi' +#alias by='go build ./cmd/yaegi' +#alias cy='cd ~/go/src/github.com/traefik/yaegi' #alias ty='go test -v -short ./interp' alias y='rlwrap -pblue yaegi' alias dy='YAEGI_AST_DOT=1 YAEGI_CFG_DOT=1 ./yaegi' -alias wai='~/go/src/github.co/traefik/whoami/whoami' +#alias wai='~/go/src/github.co/traefik/whoami/whoami' # yaegi debug export YAEGI_DOT_CMD='dotty -' |
