diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2500eef --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +all: install + +install: + ln -s "$PWD"/dotfiles/.subbash ~ + ln -s "$PWD"/dotfiles/.bashrc ~ + ln -s "$PWD"/dotfiles/.zshrc ~ + ln -s "$PWD"/dotfiles/.vimrc ~ + +clean: + rm -r .ssh doc etc functions img .gitignore README.md setup.sh ssh_setup.sh git_setup.sh .git + +uninstall: + rm -r ~/.subbash diff --git a/doc/tips.md b/doc/tips.md index 8aa15a4..c84bdce 100644 --- a/doc/tips.md +++ b/doc/tips.md @@ -2,9 +2,31 @@ ## Tips -```$RANDOM``` - Return random 0-32767\ -```\command``` - Without using alias +1. ```bash + echo $RANDOM # Return random 0-32767 + ``` + +2. ```bash + \command # without using alias + ``` +3. ```bash + mount /dev/sda2 /home + ``` + +4. ```bash + mount /dev/sdb_ /mnt/Files # Other disk + ln -s /mnt/Files $HOME # symlink in Home + ``` + +4. ```bash + sudo pkill -9 -t pts/1 # close session + ``` + +5. ```bash + [space]command # without saving in history + sudo !! # last command with sudo + ``` ### Autostart diff --git a/functions/awit.sh b/functions/awit.sh new file mode 100644 index 0000000..7910a21 --- /dev/null +++ b/functions/awit.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +symbols='/ - \ | / - \ |' + +while true; + do + for i in $symbols; + do + echo -n -e "\b$i" + sleep 0.3 + done + done \ No newline at end of file