zsh: almost all functions are scripts now (part 2)
This commit is contained in:
parent
75c3986785
commit
ec0cee28d9
14 changed files with 287 additions and 0 deletions
9
.config/shell/bin/mkswp
Executable file
9
.config/shell/bin/mkswp
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Makes a swapfile at /swapfile of a given size (ex: mkswp 4G)
|
||||
|
||||
sudo fallocate -l "$1" /swapfile &&
|
||||
sudo chmod 600 /swapfile
|
||||
sudo mkswap /swapfile &&
|
||||
sudo swapon /swapfile
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue