Skip to content

Commit

Permalink
1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jun 23, 2023
2 parents 987565e + 9e19607 commit 59e5d00
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.5
1.5.0
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Endormi'

# The full version, including alpha/beta/rc tags
release = '1.4.5'
release = '1.5.0'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion scripts/resize_term
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
21 changes: 17 additions & 4 deletions sys/other/add_alias.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

0 comments on commit 59e5d00

Please sign in to comment.