Skip to content

Commit

Permalink
Spelling mistakes + tmp == temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Josee9988 committed Aug 6, 2019
1 parent 11c5a85 commit 7733e44
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# **ALIASESJOSE**

**My personal aliases and scripts, all in one!.**
**My aliases and scripts, all in one!**

Shell script that adds several aliases to your '*~/bash_aliases*' file.

You can **choose wich ones** to install in the **installation script**.
You can **choose which ones** to install in the **installation script**.

Made in ubuntu, and the 'updating and cleaning' aliases is focused in **apt packages**.
Made in ubuntu, and the 'updating and cleaning' aliases are focused in **apt packages**.

---

## How to run the installation script ⚙️

To execute it and add the aliases you want use
To execute it and add the aliases you want to use

``` bash
chmod +x aliasesjose.sh
Expand All @@ -27,14 +27,14 @@ And the script will guide you and will let you check what aliases you want to in

### For updating and cleaning your system

- **updatef**: For updating and upgrading your system and distro. *Remember to execute as sudo*
- **updatef**: For updating and upgrading your system and distribution. *Remember to execute as sudo*
- **cleanf**: For cleaning trash and checking if the installations are correct. *Remember to execute as sudo*
- **updateff**: For using *updatef* and then *cleanf* (recommended). *Remember to execute as sudo*

### Easy navigation with *cd*

- **cd..**: So you will not miss if you don't add that space.
- **..**: For going back 1 folders.
- **..**: For going back 1 folder.
- **...**: For going back 2 folders.
- **....**: For going back 3 folders.
- **.....**: For going back 4 folders.
Expand All @@ -50,14 +50,14 @@ And the script will guide you and will let you check what aliases you want to in

### Easy extract

- **extract $1**: Use extract + your compressed file and it will use the right decompressor. (.tar.bz2, .tar.gz, .bz2, .rar, .gz, .tar, .tbz2, .tgz, .zip, .z, .7z).
- **extract $1**: Use extract + your compressed file and it will use the right decompresser. (.tar.bz2, .tar.gz, .bz2, .rar, .gz, .tar, .tbz2, .tgz, .zip, .z, .7z).

### Mariadb.service (mysql)

- **startmaria**: For starting mariadb.service
- **stopmaria**: For stopping mariadb.service
- **statusmaria**: For knowing the status of mariadb.service
- **usemaria**: For joining mysql as a root using password
- **usemaria**: For joining mysql as root using a password

### Git

Expand Down Expand Up @@ -111,6 +111,7 @@ And the script will guide you and will let you check what aliases you want to in

- **sysinfo**: An alias for 'neofetch'.
- **temp**: An alias for 'sensors'.
- **tmp**: An alias for 'sensors'.

#### Acknowledgements

Expand Down
17 changes: 9 additions & 8 deletions aliasesjose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# TITLE: aliasesjose.sh
# AUTHOR: Jose Gracia
# VERSION: 1.0 Release
# NOTES: If none of the aliases work check that in your ~/.bashrc you have a line like: .~/.bash_aliases which is surrounded by an if.
# If this is not in your linux distro add it yourself.
# NOTES: If none of the aliases works to check that in your ~/.bashrc you have a line like: .~/.bash_aliases which is surrounded by an if.
# If this is not in your Linux distribution add it yourself.
# BASH_VERSION: GNU bash, 5.0.0-17-generic #18-Ubuntu SMP Tue Jun 4 15:34:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
# LICENSE: GNU General Public License v3.0
# GITHUB: https://github.com/Josee9988/
Expand Down Expand Up @@ -44,9 +44,9 @@ case $yn in
{
echo ""
echo "#updatef and cleanf must be executed as 'Superuser$'"
echo "#updatef Will check for updates for normal software installed and also for your distro and after all"
echo "#updatef Will check for updates for normal software installed and also for your distribution and after all"
echo "#cleanf will clean trash that you don't really need and will check if any installation has gone through any error."
echo "alias updatef='echo "Downloading software" && echo "" && apt-get update && echo "Updating distro" && echo "" && apt dist-upgrade && echo "" && echo "Upgrading software" && echo "" && apt-get upgrade'"
echo "alias updatef='echo "Downloading software" && echo "" && apt-get update && echo "Updating distribution" && echo "" && apt dist-upgrade && echo "" && echo "Upgrading software" && echo "" && apt-get upgrade'"
echo "alias cleanf='echo "Cleaning trash..." && rm -rf /tmp/* && echo "" && apt-get autoclean && echo "" && echo "Removing and checking failed installations" && echo "" && apt-get autoremove && apt-get clean && apt-get check && apt install -f'"
echo ""
echo "# For all the update and upgrades and after that cleans your system. Updatef + cleanf all in one command"
Expand Down Expand Up @@ -83,7 +83,7 @@ esac

echo ""
## EXTRACT ##
echo "You can also install '${red}${bold}extract${normal}', which will uncompress almost any kind of compressed file, you will not need to worry what command uncompresses which file, just '${red}${bold}extract${normal}'"
echo "You can also install '${red}${bold}extract${normal}', which will uncompress almost any kind of compressed file, you will not need to worry what command decompresses which file, just '${red}${bold}extract${normal}'"
read -p "Do you wish to install ${red}${bold}extract${normal} aliases? [Yy/Nn] " yn
case $yn in
[Yy]*)
Expand Down Expand Up @@ -147,7 +147,7 @@ case $yn in
[Yy]*)
{
echo ""
echo "# dont write again ~/... "
echo "# do not write again ~/... "
echo "alias cdDesktop='cd ~/Desktop/' "
echo "alias cdDocuments='cd ~/Documents/' "
echo "alias cdDownloads='cd ~/Downloads/' "
Expand Down Expand Up @@ -223,7 +223,7 @@ case $yn in
echo " ;;"
echo " esac"
echo ""
echo " #creating local folder and initializating git"
echo " #creating local folder and initializing git"
echo " if [ \$cancel == false ]; then"
echo " mkdir -pv \"\$name\""
echo " if cd \"\$name\"; then echo \"Ok\"; else echo \"Fail when executing cd \$name\" exit; fi"
Expand Down Expand Up @@ -289,6 +289,7 @@ case $yn in
{
echo ""
echo "alias temp='sensors'"
echo "alias tmp='sensors'"
echo ""
} >>$fileAlias
;;
Expand All @@ -315,7 +316,7 @@ case $yn in
echo "# might fix some sudo + alias problems"
echo "alias sudo='sudo '"
echo ""
echo "# An alias to save some miliseconds of your time :) "
echo "# An alias to save some milliseconds of your time :) "
echo "alias sudos='sudo -s' "
echo "alias suspend='systemctl suspend'"
echo "alias hibernate='systemctl hibernate'"
Expand Down

0 comments on commit 7733e44

Please sign in to comment.