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 @@ - - - - - - - Directory Tree - - - -

Directory Tree

- [ 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 -

- - - diff --git a/linux/authorized_keys b/linux/my.pem similarity index 95% rename from linux/authorized_keys rename to linux/my.pem index c78d1eb..2d3dcd8 100755 --- a/linux/authorized_keys +++ b/linux/my.pem @@ -1,2 +1,2 @@ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHnBOU1gMtpNIK4NfMFgqNg9POAkvH87B1ct7Mx6Z2Xe mark@deb-3vcpu-4gb-80gb-nbg-CPX21 -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC7gBTAl2PB3zDzHp9Hz9P/WGHBNU3+sVYUBPj3WfOc0Dfo0O4+6F2dF697tl57YWwP6SePQQLiIRQJIpU7gYEf97XR9Y+ArrIn3BiZ2wgEbbTO/KQNZnpcGFYKU9oS5QQasp9ziKtpjItu9b9l6Wk4t3HGsM9j18F9AW/XwYBkdpZn41ZokqLWMcvZ/LwDgqkOL3k1YsBLBY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