From 6962b31552fbf1a2516b0777cc4a52d99a76f6f2 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Wed, 5 May 2021 20:32:05 +0200 Subject: update --- .profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.profile') diff --git a/.profile b/.profile index acb8299..78b4393 100644 --- a/.profile +++ b/.profile @@ -1,6 +1,6 @@ # ~/.profile -PATH=~/bin:$PATH:~/go/bin +PATH=~/bin:/opt/homebrew/bin:$PATH:~/go/bin [ "${SHELL##*/}" = bash ] && . ~/.bashrc @@ -8,3 +8,5 @@ PATH=~/bin:$PATH:~/go/bin #case $HOSTNAME in #([sS]wift|yoda) [ "$(tty)" != /dev/tty1 ] || exec startx ;; #esac + +. "/opt/homebrew/etc/profile.d/bash_completion.sh" -- cgit v1.3 From 4bd0a72b639662f9a13c7c0adb1b423383c84ef5 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sun, 30 May 2021 12:17:55 +0200 Subject: update --- .bashrc | 2 ++ .profile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to '.profile') diff --git a/.bashrc b/.bashrc index fca1532..c6c7b1e 100644 --- a/.bashrc +++ b/.bashrc @@ -47,6 +47,8 @@ alias ls='ls -GF' alias ll='ls -AlGFhv' alias vi='vim' alias view='vim -R' +alias ldd='otool -L' +alias ibrew='arch -x86_64 /usr/local/bin/brew' #alias op='xdg-open' alias git='hub' #alias go='go1.14.1' diff --git a/.profile b/.profile index 78b4393..bbf3c42 100644 --- a/.profile +++ b/.profile @@ -1,6 +1,6 @@ # ~/.profile -PATH=~/bin:/opt/homebrew/bin:$PATH:~/go/bin +PATH=~/bin:/opt/homebrew/bin:$PATH:~/go/bin:~/.cargo/bin [ "${SHELL##*/}" = bash ] && . ~/.bashrc -- cgit v1.3 From e27491fbca20c2ecd76fcd84bd7007a546da5a75 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 16 Oct 2021 11:18:17 +0200 Subject: update --- .bashrc | 4 ++-- .profile | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to '.profile') diff --git a/.bashrc b/.bashrc index b50da1b..0a03cf8 100644 --- a/.bashrc +++ b/.bashrc @@ -50,7 +50,7 @@ alias view='vim -R' alias ldd='otool -L' alias ibrew='arch -x86_64 /usr/local/bin/brew' #alias op='xdg-open' -alias git='hub' +#alias git='hub' #alias go='go1.14.1' #alias go11='go1.11.13' #alias go12='go1.12.10' @@ -64,7 +64,7 @@ alias gtb='go test -v -cpuprofile cpu.out -memprofile mem.out -benchmem -bench' alias rvi='sudo vim' alias rxt='sudo xt' alias rxvi='sudo xvi' -alias ww='vi ~/Wiki/HomePage' +alias ww='vi ~/Wiki/home_page.md' alias dotfiles='git --git-dir=$HOME/dotfiles --work-tree=$HOME' #alias uc='systemctl --user' diff --git a/.profile b/.profile index bbf3c42..983092c 100644 --- a/.profile +++ b/.profile @@ -2,6 +2,11 @@ PATH=~/bin:/opt/homebrew/bin:$PATH:~/go/bin:~/.cargo/bin +if [ -z "$SSH_AUTH_SOCK" ] ; then + eval `ssh-agent -s` + ssh-add +fi + [ "${SHELL##*/}" = bash ] && . ~/.bashrc # Last action: auto start X11 when logged on first console -- cgit v1.3 From 7a36b02b5f3ae6560030c97513b8c15d9abd16d8 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 27 Nov 2021 11:04:34 +0100 Subject: update --- .bashrc | 11 +++++++++-- .profile | 3 ++- .vimrc | 3 ++- bin/update_hosts | 6 +++--- 4 files changed, 16 insertions(+), 7 deletions(-) (limited to '.profile') diff --git a/.bashrc b/.bashrc index 0a03cf8..c222116 100644 --- a/.bashrc +++ b/.bashrc @@ -45,8 +45,8 @@ export TERMINAL=xt #alias ls='ls --color=auto -v' alias ls='ls -GF' alias ll='ls -AlGFhv' -alias vi='vim' -alias view='vim -R' +alias vi='nvim' +alias view='nvim -R' alias ldd='otool -L' alias ibrew='arch -x86_64 /usr/local/bin/brew' #alias op='xdg-open' @@ -59,6 +59,7 @@ alias ibrew='arch -x86_64 /usr/local/bin/brew' alias gob='go build' alias goh='p go help' alias god='p go doc' +alias gol='GO111MODULE=off go' alias gtr='go test -v -run' alias gtb='go test -v -cpuprofile cpu.out -memprofile mem.out -benchmem -bench' alias rvi='sudo vim' @@ -143,3 +144,9 @@ meteo() { # load Nix config files (aka auto-completion etc.) #export XDG_DATA_DIRS="$HOME/.nix-profile/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" + +PATH="/Users/marc/perl5/bin${PATH:+:${PATH}}"; export PATH; +PERL5LIB="/Users/marc/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; +PERL_LOCAL_LIB_ROOT="/Users/marc/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; +PERL_MB_OPT="--install_base \"/Users/marc/perl5\""; export PERL_MB_OPT; +PERL_MM_OPT="INSTALL_BASE=/Users/marc/perl5"; export PERL_MM_OPT; diff --git a/.profile b/.profile index 983092c..3e36ae3 100644 --- a/.profile +++ b/.profile @@ -1,6 +1,6 @@ # ~/.profile -PATH=~/bin:/opt/homebrew/bin:$PATH:~/go/bin:~/.cargo/bin +PATH=~/bin:/opt/homebrew/bin:/opt/homebrew/opt/ruby/bin:$PATH:~/go/bin:~/.cargo/bin if [ -z "$SSH_AUTH_SOCK" ] ; then eval `ssh-agent -s` @@ -15,3 +15,4 @@ fi #esac . "/opt/homebrew/etc/profile.d/bash_completion.sh" +eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)" diff --git a/.vimrc b/.vimrc index fd1fbbc..7f425b2 100644 --- a/.vimrc +++ b/.vimrc @@ -25,7 +25,7 @@ let g:go_list_type = "quickfix" let g:go_fmt_command = "gopls" let g:go_gopls_gofumpt = 1 let g:go_metalinter_command = "golangci-lint" -"autocmd FileType go syntax on +autocmd FileType go syntax on autocmd FileType go nmap b (go-build) autocmd FileType go nmap i (go-info) autocmd FileType go nmap r (go-run) @@ -79,3 +79,4 @@ noremap n :bn noremap :bd noremap o :!open & noremap :tag +noremap :Files diff --git a/bin/update_hosts b/bin/update_hosts index 8550ec3..40ec470 100755 --- a/bin/update_hosts +++ b/bin/update_hosts @@ -5,11 +5,11 @@ [ "$USER" = root ] || exec sudo "$0" "$@" -echo "Checking from https://github.com/StevenBlack/hosts:" -lsd=$(curl -s "https://api.github.com/repos/StevenBlack/hosts/commits?path=hosts&page=1&per_page=1"| jq -r '.[0].commit.committer.date') +echo 'Checking from https://github.com/StevenBlack/hosts:' +lsd=$(curl -s 'https://api.github.com/repos/StevenBlack/hosts/commits?path=hosts&page=1&per_page=1' | jq -r '.[0].commit.committer.date') echo "last source update: $(date -j -f "%FT%TZ" "$lsd")" echo "last local update: $(date -r /etc/hosts)" -[ $(date -j -f "%FT%TZ" "$lsd" +%s) -lt $(date -r /etc/hosts +%s) ] && echo "Nothing to do" && exit +[ $(date -j -f "%FT%TZ" "$lsd" +%s) -lt $(date -r /etc/hosts +%s) ] && echo 'Nothing to do' && exit cd /etc cp -p hosts hosts.old -- cgit v1.3 From de9baa2ddebf828e57809cdb41dddc3ee56cb29e Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Wed, 1 Dec 2021 10:26:52 +0100 Subject: updates --- .bashrc | 3 +++ .config/kitty/kitty.conf | 6 +++--- .profile | 1 + .vimrc | 15 ++++----------- 4 files changed, 11 insertions(+), 14 deletions(-) (limited to '.profile') diff --git a/.bashrc b/.bashrc index bec9d86..5c0cdee 100644 --- a/.bashrc +++ b/.bashrc @@ -32,6 +32,9 @@ fixab() { printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 "$1"; } #export LESS_TERMCAP_us=$(tput setaf 5) # underline (magenta) #export LESS_TERMCAP_ue=$'\E[0m' # end underline +# Less: use a 4-space tabulation +export LESS=Rx4 + # gnuplot display in terminal export GNUTERM='sixelgd enhanced truecolor font "arial,9"' diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index eca0bdf..3777c68 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -511,9 +511,9 @@ focus_follows_mouse yes #: Window layout {{{ -# remember_window_size yes -# initial_window_width 640 -# initial_window_height 400 +remember_window_size no +initial_window_width c640 +initial_window_height c480 #: If enabled, the window size will be remembered so that new #: instances of kitty will have the same size as the previous diff --git a/.profile b/.profile index 3e36ae3..a2ba42f 100644 --- a/.profile +++ b/.profile @@ -16,3 +16,4 @@ fi . "/opt/homebrew/etc/profile.d/bash_completion.sh" eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)" +tabs -4 diff --git a/.vimrc b/.vimrc index 436dcaa..c2a5776 100644 --- a/.vimrc +++ b/.vimrc @@ -1,7 +1,7 @@ +" General vim defaults " set background= -"set t_te= t_ti= laststatus=2 set t_te= t_ti= ls=1 ruler - +set ai ts=4 sw=4 noet syntax off filetype on filetype plugin on @@ -35,21 +35,14 @@ autocmd FileType go nmap v (go-referrers) autocmd FileType go nmap n :cnext autocmd FileType go nmap p :cprevious autocmd FileType go nmap a :cclose -autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 +" autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 let g:netrw_browsex_viewer = "open" let g:netrw_gx = "" let g:netrw_banner = 0 -autocmd filetype javascript,html,json,yaml set ts=2 sts=2 sw=2 et +" autocmd filetype javascript,html,json,yaml set ts=2 sts=2 sw=2 et -" :set wm=2 linebreak -" :set term=ansi -":set modeline -":set modelines=5 -set autoindent -"set breakindent -" :set ts=2 sw=2 sts=2 et :set wrap :set linebreak :set nolist -- cgit v1.3 From a797ee4be03d967768635a472cc71823b684d58a Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 10 Dec 2021 12:15:36 +0100 Subject: update --- .bashrc | 10 ---------- .profile | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to '.profile') diff --git a/.bashrc b/.bashrc index c5bdc82..1a05028 100644 --- a/.bashrc +++ b/.bashrc @@ -144,13 +144,3 @@ meteo() { # Display git status in prompt . ~/.bash-powerline.sh -# export PS1='; ' - -# load Nix config files (aka auto-completion etc.) -#export XDG_DATA_DIRS="$HOME/.nix-profile/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" - -PATH="/Users/marc/perl5/bin${PATH:+:${PATH}}"; export PATH; -PERL5LIB="/Users/marc/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; -PERL_LOCAL_LIB_ROOT="/Users/marc/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT; -PERL_MB_OPT="--install_base \"/Users/marc/perl5\""; export PERL_MB_OPT; -PERL_MM_OPT="INSTALL_BASE=/Users/marc/perl5"; export PERL_MM_OPT; diff --git a/.profile b/.profile index a2ba42f..9811256 100644 --- a/.profile +++ b/.profile @@ -15,5 +15,5 @@ fi #esac . "/opt/homebrew/etc/profile.d/bash_completion.sh" -eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)" + tabs -4 -- cgit v1.3 From e200c8d78ca1d3388c25c1cef8892b1dd015bbf7 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Fri, 28 Jan 2022 12:19:59 +0100 Subject: update --- .bashrc | 6 ++++-- .profile | 2 +- bin/vm | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) (limited to '.profile') diff --git a/.bashrc b/.bashrc index 8e0b339..c977a96 100644 --- a/.bashrc +++ b/.bashrc @@ -86,8 +86,8 @@ 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 ty='go test -v -short ./interp' -alias ya='rlwrap -pblue yaegi' -alias dya='YAEGI_AST_DOT=1 YAEGI_CFG_DOT=1 ./yaegi' +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' # yaegi debug @@ -144,3 +144,5 @@ meteo() { # Display git status in prompt . ~/.bash-powerline.sh + +export GITHUB_TOKEN=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 diff --git a/.profile b/.profile index 9811256..fb64b2e 100644 --- a/.profile +++ b/.profile @@ -1,6 +1,6 @@ # ~/.profile -PATH=~/bin:/opt/homebrew/bin:/opt/homebrew/opt/ruby/bin:$PATH:~/go/bin:~/.cargo/bin +PATH=~/bin:/opt/homebrew/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/tcl-tk/bin:$PATH:~/go/bin:~/.cargo/bin if [ -z "$SSH_AUTH_SOCK" ] ; then eval `ssh-agent -s` diff --git a/bin/vm b/bin/vm index 97e3521..6b03d0e 100755 --- a/bin/vm +++ b/bin/vm @@ -242,7 +242,8 @@ start_vm() ( "$dir/vftool" \ ${kernel+-k "$kernel"} \ ${initrd+-i "$initrd"} \ - ${hdd+-d "$hdd"} \ + ${hda+-d "$hda"} \ + ${hdb+-d "$hdb"} \ ${iso+-c "$iso"} \ ${cpu+-p "$cpu"} \ ${ram+-m "$ram"} \ -- cgit v1.3