add: Makefile

This commit is contained in:
TheK4n 2021-11-23 03:43:53 +03:00
parent 69e0a8c7bd
commit 1f348351b4
3 changed files with 49 additions and 2 deletions

13
Makefile Normal file
View File

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

View File

@ -2,9 +2,31 @@
## Tips ## Tips
```$RANDOM``` - Return random 0-32767\ 1. ```bash
```\command``` - Without using alias 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 ### Autostart

12
functions/awit.sh Normal file
View File

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