commit a8b605b3231200d3a3b3c0da7c8ab275ce78138e parent 29bc739ae3bf1e121916b9582c469405111ef4a8 Author: Remy Noulin <loader2x@gmail.com> Date: Mon, 10 Dec 2018 15:09:20 +0000 add support for dragonflyBSD Diffstat:
| A | dragonflybsd/.cshrc | | | 159 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | dragonflybsd/.gitconfig | | | 55 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | dragonflybsd/3-home.sh | | | 36 | ++++++++++++++++++++++++++++++++++++ |
| A | dragonflybsd/diffHome.sh | | | 41 | +++++++++++++++++++++++++++++++++++++++++ |
| A | dragonflybsd/systemSetupCommit.sh | | | 4 | ++++ |
| A | dragonflybsd/updateHome.sh | | | 9 | +++++++++ |
| A | dragonflybsd/updateHomeNoGui.sh | | | 38 | ++++++++++++++++++++++++++++++++++++++ |
| A | dragonflybsd/vimrc.local | | | 21 | +++++++++++++++++++++ |
8 files changed, 363 insertions(+), 0 deletions(-)
diff --git a/dragonflybsd/.cshrc b/dragonflybsd/.cshrc @@ -0,0 +1,159 @@ +# $FreeBSD: head/share/skel/dot.cshrc 278616 2015-02-12 05:35:00Z cperciva $ +# +# .cshrc - csh resource script, read at beginning of execution by each shell +# +# see also csh(1), environ(7). +# + +#alias h history 25 +alias j jobs -l +alias la ls -aF +alias lf ls -FA +alias ll ls -lAF + +alias al "(cat ~/.cshrc|grep '^alias')" +alias whal 'al|grep' +alias pss 'pwgen -s -y 20 6; echo ; pwgen -s 20 6' +#alias tar "tar --use-compress-program=pbzip2" +alias l "ls -l -h" +alias la "ls -ltr" +alias ll "ls -al" +alias rd "rm -rf" +alias cd.. 'cd ..' +alias .. 'cd ..' +alias ... 'cd ../..' +#alias suspend='sudo pm-suspend' +alias objdump 'objdump -M intel' +alias g git +alias csv 'scim --txtdelim=";"' +alias new '~/bin/new.sh' +alias mk 'source ~/bin/mk.sh' +alias r ranger +alias h history +alias vd vimdiff +alias noc "sed 's/\x1b\[[0-9;]*[a-zA-Z]//g'" +alias td 'tree -d' + +# Display colors in less : +alias less less -R + +# apt +#alias qs="apt-cache search" +#alias qd="apt-cache show" +#alias qw="apt-get install" + +alias duu du -h -d 1 +alias dfh df -h + +# Screen attach detach +alias scr "screen -T xterm" +alias sr "screen -r" +alias sd "screen -d" +alias ta "tmux attach" +alias tad "tmux attach -d" + +#alias webs="w3m -no-cookie -s -W www.google.com" +alias webs '/usr/local/bin/webs.sh' +alias ws webs +alias cm "cmatrix -b -u 6 -a -C blue" + +#alias ifconfig '/sbin/ifconfig' +alias xus "xmodmap /usr/share/xmodmap/xmodmap.us" +alias xse "xmodmap /usr/share/xmodmap/xmodmap.se" + +# easydoneit +alias , 'edi' +alias ,l ', ls' +alias ,c ', cat' +alias s '~/bin/xapianOmegaSearch.sh' +alias ,lc ',l -s|tac' +alias ,lt ',l -t|tac' +alias ,a ', add -t' +alias ,s ', search' +# Add task at bottom of list +alias ,bt ', topbot bottom;, cr' +# Add task on top of list +alias ,tt ', topbot top;, cr' + +# sheepy +alias z 'sheepy' +alias ref '~/bin/ref.sh' +alias zh 'z -h' +alias zc 'z -c' +alias zl 'z -l' +alias zd 'z -d' +alias zn 'z -n' +alias zm 'z -m' +alias ze 'z -e' +alias sh 'spm help' +alias sn 'spm new' +alias sp 'spm publish' +alias si 'spm install' +alias sun 'spm uninstall' +alias ssw 'spm show' +alias sup 'spm update' +alias sf 'spm find' +alias st 'spm top' +alias sht 'spm hot' +alias slt 'spm latest' +alias sw 'spm whoami' +alias spf 'spm profile' +alias sif 'spm info' +alias sT 'spmTui' + +# git +alias go 'git checkout' +alias gi 'git commit' +alias gia 'git commit --amend' +alias ga 'git commit -a' +alias gd 'git diff' +alias gp 'git push' +alias gl 'git pull' +alias gu 'git status' +alias gg 'git log --pretty=fuller' +alias gh 'git gg' +alias gc 'git clone' +alias gb 'git blame' +alias gs 'git show --pretty=fuller' +alias gst 'git stash' +alias gsta 'git stash apply' +alias gr 'git branch -D' +alias grt 'git remote -v' +alias gj 'git log -p' +alias gle '~/bin/gle.sh' +alias gdf '~/bin/gdf.sh' + +#alias lsb "setenv LS_COLORS \"no=00:fi=00:di=01;34:ln=01;35:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;31:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;35:*.au=00;35:*.flac=00;35:*.mid=00;35:*.midi=00;35:*.mka=00;35:*.mp3=00;35:*.mpc=00;35:*.ogg=00;35:*.ra=00;35:*.wav=00;35:\"" +#alias lsd "setenv LS_COLORS \"no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:\"" + + +# These are normally set through /etc/login.conf. You may override them here +# if wanted. +# set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin) +# setenv BLOCKSIZE K +# A righteous umask +# umask 22 + +setenv EDITOR vi +setenv PAGER less + +if ($?prompt) then + # An interactive shell -- set some stuff up + set prompt = "%N@%m%# " + set promptchars = "%#" + + set filec + set history = 1000 + set savehist = (1000 merge) + set autolist = ambiguous + # Use history to aid expansion + set autoexpand + set autorehash + set mail = (/var/mail/$USER) + if ( $?tcsh ) then + bindkey "^W" backward-delete-word + bindkey -k up history-search-backward + bindkey -k down history-search-forward + endif + +endif diff --git a/dragonflybsd/.gitconfig b/dragonflybsd/.gitconfig @@ -0,0 +1,55 @@ +[color] + ui = auto +[core] + editor = vim +# pager = diff-so-fancy | less --tabs=4 -RFX +[diff] + tool = meld +[difftool] + prompt = false +[difftool "meld"] + cmp = /usr/bin/meld "$LOCAL" "$REMOTE" +[merge] + tool = meld +[mergetool] + prompt = false + keepbackup = false +[mergetool "meld"] + cmp = /usr/bin/meld "$LOCAL" "$REMOTE" "$MERGED" + trustExitCode = true +[alias] + st = status + di = diff + co = checkout + ci = commit + br = branch + sta = stash + mergetool-modelint = mergetool -t modelint + mergetool-bcomp = mergetool -t bcomp + + gg = log --oneline --abbrev-commit --all --graph --decorate --color + whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -" + whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short + sortdiff = !sh -c 'git diff "$@" | grep "^[+-]" | sort --key=1.2 | uniq -u -s1' + lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative + abbr = "!sh -c 'git rev-list --all | grep ^$1 | while read commit; do git --no-pager log -n1 --pretty=format:\"%H %ci %an %s%n\" $commit; done' -" + bra = branch -a + lol = log --decorate --pretty=oneline --abbrev-commit + lola = log --decorate --pretty=oneline --abbrev-commit --all + +[apply] + whitespace = fix +[init] + templatedir=~/.gittemplates/ +[color "diff-highlight"] + oldNormal = red bold + oldHighlight = red bold 52 + newNormal = green bold + newHighlight = green bold 22 +[color "diff"] + meta = 227 + frag = magenta bold + commit = 227 bold + old = red bold + new = green bold + whitespace = red reverse diff --git a/dragonflybsd/3-home.sh b/dragonflybsd/3-home.sh @@ -0,0 +1,36 @@ +./updateHome.sh + +git off install + +#install vim vundle +git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim + +# in vim run :PluginInstall +echo 'in vim run :PluginInstall' + +# fzf +git clone https://github.com/junegunn/fzf.git +cd fzf +./install --all +cd .. + +# setup diff-so-fancy in gitconfig +## commented because it is in .gitconfig + git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX" + git config --global color.ui true + + git config --global color.diff-highlight.oldNormal "red bold" + git config --global color.diff-highlight.oldHighlight "red bold 52" + git config --global color.diff-highlight.newNormal "green bold" + git config --global color.diff-highlight.newHighlight "green bold 22" + + git config --global color.diff.meta "227" + git config --global color.diff.frag "magenta bold" + git config --global color.diff.commit "227 bold" + git config --global color.diff.old "red bold" + git config --global color.diff.new "green bold" + git config --global color.diff.whitespace "red reverse" +git config --bool --global diff-so-fancy.markEmptyLines false +git config --bool --global diff-so-fancy.changeHunkIndicators false +git config --bool --global diff-so-fancy.stripLeadingSymbols false +git config --bool --global diff-so-fancy.useUnicodeRuler false diff --git a/dragonflybsd/diffHome.sh b/dragonflybsd/diffHome.sh @@ -0,0 +1,41 @@ +echo diff ../dotfiles/.bash_aliases ~/.bash_aliases +diff ../dotfiles/.bash_aliases ~/.bash_aliases +echo diff ../dotfiles/.bashrc ~/.bashrc +diff ../dotfiles/.bashrc ~/.bashrc +echo diff ../dotfiles/.gdbinit ~/.gdbinit +diff ../dotfiles/.gdbinit ~/.gdbinit +echo diff ../dotfiles/.gitconfig ~/.gitconfig +diff ../dotfiles/.gitconfig ~/.gitconfig +echo diff ../dotfiles/.gittemplates/hooks/prepare-commit-msg ~/.gittemplates/hooks/prepare-commit-msg +diff ../dotfiles/.gittemplates/hooks/prepare-commit-msg ~/.gittemplates/hooks/prepare-commit-msg +echo diff ../dotfiles/.tmux.conf ~/.tmux.conf +diff ../dotfiles/.tmux.conf ~/.tmux.conf +#diff -R ../dotfiles/.vim/* ~/.vim/ +echo diff ../dotfiles/.vimrc ~/.vimrc +diff ../dotfiles/.vimrc ~/.vimrc +#diff ../dotfiles/new.sh ~/bin/ +#diff ../dotfiles/updateXapianIndex.sh ~/bin/ +#diff ../dotfiles/xapianOmegaSearch.sh ~/bin/ +echo diff ../dotfiles/gpg-agent.conf ~/.gnupg/gpg-agent.conf +diff ../dotfiles/gpg-agent.conf ~/.gnupg/gpg-agent.conf +echo diff ../dotfiles/.ssh/config ~/.ssh/config +diff ../dotfiles/.ssh/config ~/.ssh/config + +# i3 +#diff -R ../dotfiles/.i3/* ~/.i3/ + +# fluxbox +#diff -R ../dotfiles/.fluxbox/* ~/.fluxbox/ + +# mc +#diff -R ../dotfiles/mc/* ~/.config/mc/ + +# ranger sixel/mlterm configuration +echo diff ../dotfiles/rc.conf ~/.config/ranger/rc.conf +diff ../dotfiles/rc.conf ~/.config/ranger/rc.conf +echo diff ../dotfiles/default.py ~/.config/ranger/colorschemes/default.py +diff ../dotfiles/default.py ~/.config/ranger/colorschemes/default.py + +echo +echo ---- +echo run ./systemSetupCommit.sh when the config is synchronized with latest commit diff --git a/dragonflybsd/systemSetupCommit.sh b/dragonflybsd/systemSetupCommit.sh @@ -0,0 +1,4 @@ +echo "last setup from commit:" > ~/.systemSetupCommit.txt +git show --oneline -s >> ~/.systemSetupCommit.txt +echo "Updated ~/.systemSetupCommit.txt" +cat ~/.systemSetupCommit.txt diff --git a/dragonflybsd/updateHome.sh b/dragonflybsd/updateHome.sh @@ -0,0 +1,9 @@ +./updateHomeNoGui.sh + +## i3 +#mkdir ~/.i3 +#cp -R ../dotfiles/.i3/* ~/.i3/ +# +## fluxbox +#mkdir ~/.fluxbox +#cp -R ../dotfiles/.fluxbox/* ~/.fluxbox/ diff --git a/dragonflybsd/updateHomeNoGui.sh b/dragonflybsd/updateHomeNoGui.sh @@ -0,0 +1,38 @@ +cp .cshrc ~/ +cp ../dotfiles/.gdbinit ~/ +cp .gitconfig ~/ +mkdir ~/.gittemplates +#cp -R ../dotfiles/.gittemplates/* ~/.gittemplates/ +cp ../dotfiles/.tmux.conf ~/ +mkdir ~/.vim +cp -R ../dotfiles/.vim/* ~/.vim/ +cp ../dotfiles/.vimrc ~/ +mkdir ~/bin +cp ../dotfiles/new.sh ~/bin/ +cp ../dotfiles/gf ~/bin/ +cp ../dotfiles/gre ~/bin/ +cp ../dotfiles/mk.sh ~/bin/ +cp ../dotfiles/updateXapianIndex.sh ~/bin/ +cp ../dotfiles/xapianOmegaSearch.sh ~/bin/ +cp ../dotfiles/ref.sh ~/bin/ +cp ../dotfiles/gle.sh ~/bin/ +cp ../dotfiles/gdf.sh ~/bin/ +mkdir ~/.gnupg +cp ../dotfiles/gpg-agent.conf ~/.gnupg/ +mkdir ~/.ssh +#TODO chmod 700 ~/.ssh +#TODO cp ../dotfiles/.ssh/config ~/.ssh/ +mkdir ~/.w3m +cp ../dotfiles/.w3m/config ~/.w3m/ + +# mc +mkdir -p ~/.config/mc +cp -R ../dotfiles/mc/* ~/.config/mc/ + +# ranger sixel/mlterm configuration +mkdir -p ~/.config/ranger/colorschemes +cp ../dotfiles/rc.conf ~/.config/ranger/ +cp ../dotfiles/default.py ~/.config/ranger/colorschemes/ + +# save current commit in home +./systemSetupCommit.sh diff --git a/dragonflybsd/vimrc.local b/dragonflybsd/vimrc.local @@ -0,0 +1,21 @@ +set nocompatible +set history=10000 +set cul +set so=20 +set ic +set foldmethod=syntax +set hls +set sidescroll=1 +set autowrite +set autoread +set incsearch +set autoindent +set background=dark +set list +set listchars=tab:\|\ +set mouse= + +set undofile " Save undo's after file closes +set undodir=$HOME/.vim/undo " where to save undo histories +set undolevels=1000 " How many undos +set undoreload=10000 " number of lines to save for undo