commit 024298668bd83c58650ee86bf70f36f47f4cadc1
parent bb251c02a191609977c19d9b371b334605405416
Author: Remy Noulin <loader2x@gmail.com>
Date: Thu, 6 Apr 2023 09:40:45 +0200
Update freebsd (13)
Diffstat:
5 files changed, 39 insertions(+), 10 deletions(-)
diff --git a/freebsd/.bash_aliases b/freebsd/.bash_aliases
@@ -5,7 +5,6 @@ fi
alias al="(cat ~/.bash_aliases|grep '^alias' && cat ~/.bash_aliases_local | 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 -D "%Y-%m-%d %H:%M:%S"'
alias la='ls -ltr -D "%Y-%m-%d %H:%M:%S"'
alias ll='ls -al -D "%Y-%m-%d %H:%M:%S"'
@@ -32,6 +31,8 @@ alias vn='vim `git ls-files|pick`'
alias c='source ~/bin/c.sh'
alias pl='~/bin/pl.sh'
alias vi='vim'
+alias heure="tty-clock -sxcC 1 -d 0 -a 100000000"
+alias p="jobs"
# Display colors in less :
@@ -39,12 +40,12 @@ alias less="less -R"
alias le=less
-# apt
+# apt - package manager
alias qs="apt-cache search"
alias qd="apt-cache show"
alias qw="apt-get install"
-alias duu="du -h --max-depth=1"
+alias duu="du -h -d 1"
alias dfh="df -h"
# Screen attach detach
@@ -55,7 +56,7 @@ alias ta="tmux attach"
alias tad="tmux attach -d"
#alias webs="w3m -no-cookie -s -W www.google.com"
-alias webs='~/bin/webs.sh'
+alias webs='/usr/local/bin/webs.sh'
alias ws=webs
alias cm="cmatrix -b -u 6 -a -C blue"
@@ -112,7 +113,7 @@ alias gi='git commit'
alias gia='git commit --amend'
alias ga='git commit -a'
alias gaa='git commit -a --amend'
-alias gd='git diff'
+alias gd='git diff --patch-with-raw'
alias gp='git push'
alias gl='git pull'
alias gu='git status'
@@ -120,12 +121,12 @@ 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 gs='git show --pretty=fuller --patch-with-raw'
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 gj='git log -p --follow'
alias gle='~/bin/gle.sh'
alias gdf='~/bin/gdf.sh'
alias gig='cp ~/.gittemplates/.gitignore'
diff --git a/freebsd/.tmux.conf b/freebsd/.tmux.conf
@@ -0,0 +1,19 @@
+set-option -g prefix C-a
+bind-key C-a last-window
+bind-key a send-prefix
+
+set -g history-limit 20000
+
+set-option -g status off
+
+set -g set-titles on
+set -g set-titles-string "#T"
+
+# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
+#set-option -g status-bg colour235 #base02
+#set-option -g status-fg colour136 #yellow
+#set-option -g status-attr default
+
+set -g default-terminal xterm
+
+set -g default-shell /usr/local/bin/bash
diff --git a/freebsd/1-system.sh b/freebsd/1-system.sh
@@ -4,7 +4,7 @@
# invite user to video wheel webcamd
# pw user mod user -G wheel
-# pkg install vim
+pkg install vim
# ssh server setup:
# /etc/rc.conf
@@ -26,7 +26,9 @@
# echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xinitrc
# echo ". /usr/local/etc/xdg/xfce4/xinitrc" > ~/.xsession
-pkg install sshguard wget tmux gcc gdb tree py37-ranger mc htop w3m tig imagemagick curl screen mc ncftp rtorrent pbzip2 atop tcc py37-sshuttle cmatrix kpcli iftop unison graphviz hs-pandoc elinks links nmap figlet zip lynx cowsay sl rdiff-backup graphicsmagick pwgen rsync pigz pixz astyle uncrustify valgrind doxygen fish lcov slurm-wlm cloc the_silver_searcher ncdu mutt bmon cppcheck check llvm90 toilet ctags py37-mkdocs source-highlight highlight
+pkg install bash slrn tty-clock sshguard wget tmux gcc gdb tree py39-ranger mc htop w3m tig curl screen ncftp atop tcc kpcli iftop unison elinks links nmap zip lynx pwgen rsync pigz pixz astyle uncrustify valgrind ncdu mutt cppcheck ctags source-highlight highlight
+
+# pkg install sshguard wget tmux gcc gdb tree py37-ranger mc htop w3m tig imagemagick curl screen mc ncftp rtorrent pbzip2 atop tcc py37-sshuttle cmatrix kpcli iftop unison graphviz hs-pandoc elinks links nmap figlet zip lynx cowsay sl rdiff-backup graphicsmagick pwgen rsync pigz pixz astyle uncrustify valgrind doxygen fish lcov slurm-wlm cloc the_silver_searcher ncdu mutt bmon cppcheck check llvm90 toilet ctags py37-mkdocs source-highlight highlight
# missing
# iotop qrencode llgal unifdef massif-visualizer valkyrie etckeeper autojump
diff --git a/freebsd/3-home.sh b/freebsd/3-home.sh
@@ -32,3 +32,9 @@ 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
+
+cd ~/
+ln -s .bashrc .bash_profile
+
+# change default shell to bash
+chsh -s /usr/local/bin/bash
diff --git a/freebsd/updateHomeNoGui.sh b/freebsd/updateHomeNoGui.sh
@@ -1,9 +1,10 @@
+mkdir ~/tmp/
cp .bash_aliases ~/
cp .bashrc ~/
cp ../dotfiles/.gdbinit ~/
cp ../dotfiles/.gitconfig ~/
cp -R ../dotfiles/.gittemplates ~/
-cp ../dotfiles/.tmux.conf ~/
+cp .tmux.conf ~/
mkdir ~/.vim
cp -R ../dotfiles/.vim/* ~/.vim/
cp ../dotfiles/.vimrc ~/