add: Makefile
This commit is contained in:
parent
69e0a8c7bd
commit
1f348351b4
13
Makefile
Normal file
13
Makefile
Normal 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
|
||||
26
doc/tips.md
26
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
|
||||
|
||||
12
functions/awit.sh
Normal file
12
functions/awit.sh
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user