diff --git a/.version b/.version index e516bb9..bc80560 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.4.5 +1.5.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6408d9f..6f1da16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,45 @@ # Changelog +## 1.5.0 + +- Add: + - Support for absolute PATH + + - New scripts: + + - Add project to PATH (located in the scripts folder) + - Keyword search + - File extension filtering + - Directory size + - Duplicate file + - File permission check + + - Image validator class for image scripts + - Scripts/utils folder for enhancing code reusability + - get_user_input method for user inputs + - resize_terminal method to reduce repetition + - check_and_install_package method + - execute_command method for executing commands + - Tests + - RSpec to GitHub Workflow + +- Update: + - Restructured codebase using modules and classes + - Enhance code portability and reliability with silent I/O redirection + - Organize download scripts by moving them to a dedicated folder + - Color methods from String class into a Color module + - Method names for better clarity and readability + - Move tools scripts dedicated to tilux into a folder called tilux + - Utility names for improved clarity and structure + - Header utility name for improved clarity + - Variable names for better readability + - Pull the latest changes from submodule + - Documentation + - Use v2 for upload-sarif codeql action + +- Remove: + - Quotes from bash variables since it's not necessary and keeps consistency + ## 1.4.5 - Add: diff --git a/README.md b/README.md index a090377..be6f595 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ooooooooooooo ooooo ooooo ooooo ooo ooooooo ooooo o888o o888o o888ooooood8 YbodP o888o o88888o ``` -![v](https://img.shields.io/badge/tilux-v.1.4.5-blue) +![v](https://img.shields.io/badge/tilux-v.1.5.0-blue) ![docker-compose-action-CI](https://github.com/endormi/tilux/workflows/docker-compose-action-CI/badge.svg?branch=master) ![ruby](https://github.com/endormi/tilux/actions/workflows/ruby.yml/badge.svg) ![make](https://github.com/endormi/tilux/actions/workflows/make.yml/badge.svg) diff --git a/docs/source/conf.py b/docs/source/conf.py index a6706ed..1a81c57 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -22,7 +22,7 @@ author = 'Endormi' # The full version, including alpha/beta/rc tags -release = '1.4.5' +release = '1.5.0' # -- General configuration --------------------------------------------------- diff --git a/scripts/resize_term b/scripts/resize_term index dbf2014..460df9c 100755 --- a/scripts/resize_term +++ b/scripts/resize_term @@ -8,7 +8,7 @@ resize_terminal() { geometry=$2 echo "Resizing terminal.. (this will open a new terminal)" sleep 0.5 - $terminal_cmd $geometry 85x25 + $terminal_cmd $geometry 80x24 echo "Done!" exit } diff --git a/sys/other/add_alias.sh b/sys/other/add_alias.sh index 7f4b94a..aa96147 100755 --- a/sys/other/add_alias.sh +++ b/sys/other/add_alias.sh @@ -16,9 +16,11 @@ get_user_input() { script_argument=$1 -[ ! -f ~/.bash_aliases ] && touch ~/.bash_aliases +bash_aliases_file=~/.bash_aliases -. ~/.bash_aliases +[ ! -f $bash_aliases_file ] && touch $bash_aliases_file + +. $bash_aliases_file get_user_input "Alias: " alias @@ -29,6 +31,17 @@ fi get_user_input "Command: " cmd -echo -e "alias $alias='$cmd'" >> ~/.bash_aliases +echo -e "alias $alias='$cmd'" >> $bash_aliases_file echo "Added ${alias} to .bash_aliases" -exec "$BASH" + +echo -e "\nChanges have been made to ${bash_aliases_file}." +echo -e "It's recommended to start a new shell session to get the changes immediately.\n" +read -p "Do you want to start a new shell session? (y/N) " response + +response="$(echo "$response" | tr 'A-Z' 'a-z')" + +if [[ "$response" == "y" || "$response" == "yes" ]]; then + exec $BASH +else + exit +fi