diff --git a/README.md b/README.md index ed32265..7f5ee24 100755 --- a/README.md +++ b/README.md @@ -3,13 +3,14 @@ Use something like below to get and roll-out quickly: ```bash -url='https://gitea.dosmo.de/mark/dotfiles/raw/branch/main/linux/' -fls='{.bash_aliases,.bashrc,.profile,.tmux.conf,.vimrc,authorized_keys}' + url='https://gitea.dosmo.de/mark/dotfiles/raw/branch/main/linux/' +fls='{.bash_aliases,.bashrc,.profile,.tmux.conf,.vimrc,my.pem,bin/tmux-mem-cpu-load}' cd ~ # or where ever you want to place these files: -mkdir -pv ./.dotfiles/bak +mkdir -pv ./.dotfiles/bak ~/bin cd ./.dotfiles && curl -JOL "$url$fls" -for f in ./.*; do mv -vn ~/"$f" ./bak/; mv -vn "$f" ~/; done +for f in ./.*; do [[ -f ~/"$f" ]] && mv -vn ~/"$f" ./bak/; mv -vn "$f" ~/; done +mv -vn ./my.pem ~/.ssh/; mv -vn ./tmux-mem-cpu-load ~/bin/ cd /usr/local/bin/ && \ curl -JOL "https://gitea.dosmo.de/mark/dotfiles/raw/branch/main/linux/bin_amd64/tmux-mem-cpu-load" && \ diff --git a/linux/.bash_aliases b/linux/.bash_aliases index 39d71bc..2591d2f 100755 --- a/linux/.bash_aliases +++ b/linux/.bash_aliases @@ -8,6 +8,13 @@ else alias l='ls -CFG' fi +alias dir='dir --color=auto' +alias vdir='vdir --color=auto' + +alias grep='grep --color=auto' +alias fgrep='fgrep --color=auto' +alias egrep='egrep --color=auto' + alias cd..='cd ..' alias mkdir='mkdir -pv' diff --git a/linux/.bashrc b/linux/.bashrc index a454eb2..2fe33fd 100755 --- a/linux/.bashrc +++ b/linux/.bashrc @@ -19,6 +19,7 @@ prepend_path() { } append_path '/usr/local/bin/busybox' +append_path ~/bin export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 @@ -116,12 +117,6 @@ esac if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' - - #alias grep='grep --color=auto' - #alias fgrep='fgrep --color=auto' - #alias egrep='egrep --color=auto' fi # colored GCC warnings and errors @@ -146,3 +141,5 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi + +# tmux-mem-cpu-load diff --git a/linux/bin/tmux-mem-cpu-load b/linux/bin/tmux-mem-cpu-load new file mode 100755 index 0000000..015793d --- /dev/null +++ b/linux/bin/tmux-mem-cpu-load @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +top -bn1 | \ + awk -F'[ \t,]+' '/^top -/{u=$(NF-6)" "$(NF-5);l=$(NF-2)" "$(NF-1)" "$(NF)};/^MiB Mem/{printf "%d/%d MB %s %s",$8,$4,u,l;exit 0}' \ No newline at end of file diff --git a/linux/index.html b/linux/index.html deleted file mode 100644 index d4ce135..0000000 --- a/linux/index.html +++ /dev/null @@ -1,253 +0,0 @@ - - -
- - - -
- [ 512] .
- ├── [ 502] .bash_aliases
- ├── [4.5K] .bashrc
- ├── [ 211] .gitconfig
- ├── [ 161] .profile
- ├── [1.1K] .tmux.conf
- ├── [4.0K] .vimrc
- ├── [ 96] XminiDeb
- │ └── [ 96] .ssh
- │ └── [ 95] id_ed25519.pub
- ├── [ 859] authorized_keys
- ├── [ 96] bin_amd64
- │ └── [ 53K] tmux-mem-cpu-load
- ├── [ 288] deb11-ax61
- │ ├── [ 417] .bash_aliases
- │ ├── [4.5K] .bashrc
- │ ├── [ 211] .gitconfig
- │ ├── [ 161] .profile
- │ ├── [ 160] .ssh
- │ │ ├── [1.2K] authorized_keys
- │ │ ├── [ 100] id_ed25519.pub
- │ │ └── [ 759] id_rsa.pub
- │ ├── [ 659] .tmux.conf
- │ └── [4.0K] .vimrc
- ├── [ 224] deb11-vps
- │ ├── [4.9K] .bashrc
- │ ├── [ 148] .profile
- │ ├── [ 128] .ssh
- │ │ ├── [ 934] authorized_keys
- │ │ └── [ 115] id_ed25519.pub
- │ ├── [1.1K] .tmux.conf
- │ └── [4.0K] .vimrc
- ├── [ 256] deb11-x1y2
- │ ├── [ 468] .bash_aliases
- │ ├── [4.5K] .bashrc
- │ ├── [ 23] .gitconfig
- │ ├── [ 128] .ssh
- │ │ ├── [ 939] config
- │ │ └── [ 99] id_ed25519.pub
- │ ├── [1.1K] .tmux.conf
- │ └── [4.0K] .vimrc
- ├── [ 224] dosmo
- │ ├── [5.3K] .bashrc
- │ ├── [ 148] .profile
- │ ├── [ 160] .ssh
- │ │ ├── [1.3K] authorized_keys
- │ │ ├── [ 107] id_ed25519.pub
- │ │ └── [ 751] id_rsa.pub
- │ ├── [1.1K] .tmux.conf
- │ └── [4.0K] .vimrc
- └── [9.8K] index.html
-
- -12 directories, 39 files - -
-
- tree v2.2.1 © 1996 - 2024 by Steve Baker and Thomas Moore
- HTML output hacked and copyleft © 1998 by Francesc Rocher
- JSON output hacked and copyleft © 2014 by Florian Sesser
- Charsets / OS/2 support © 2001 by Kyosuke Tokoro
-