-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Introduced
libevent.sh
with functions (#68)
- Loading branch information
Showing
9 changed files
with
62 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# dotfiles | ||
|
||
These dotfiles include configuration settings for various tools I use, such as [Oh My Zsh](https://github.com/ohmyzsh/ohmyzsh/) for _Linux_ terminal customization, [Oh My Posh](https://github.com/JanDeDobbeleer/oh-my-posh/) for _Windows_ terminal customization, EditorConfig, and many more. | ||
These dotfiles include configuration settings for various tools like [Oh My Zsh](https://github.com/ohmyzsh/ohmyzsh/) and [Oh My Posh](https://github.com/JanDeDobbeleer/oh-my-posh/) for terminal customization, custom libraries, and many more. | ||
|
||
Additionally, this repository contains template files that I use for other repositories, such as GitHub Actions Workflow, Dependabot, syncing labels, or the other commonly used dotfiles. | ||
Additionally, this repository contains template files that can be used for other repositories, such as _GitHub Actions Workflow_, _Dependabot_, _Labeler_, or other commonly used dotfiles. | ||
|
||
## Getting started | ||
## Getting Started | ||
|
||
Make sure you have [nerd-fonts](https://github.com/ryanoasis/nerd-fonts/) installed in your system. | ||
Ensure that you have [nerd-fonts](https://github.com/ryanoasis/nerd-fonts/) installed on your system. | ||
|
||
### Installation on Linux | ||
|
||
Clone this repository and type the `./install.sh` command in the **Shell** terminal to perform the installation in _Linux_ system. | ||
Clone this repository and execute the `./install.sh` script in the _Shell_ terminal to install the configurations on **Linux**. | ||
|
||
### Installation on Windows | ||
|
||
Clone this repository and type the `.\install.ps1` command in the **PowerShell** terminal to perform the installation in _Windows_ system. | ||
Clone this repository and execute the `.\install.ps1` script in the _PowerShell_ terminal to install the configurations on **Windows**. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!-- This file is meant for maintaining the folder structure and will be committed. --> | ||
<!-- You can delete it later once there is content found in this folder. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# mdsanima-shell | ||
|
||
This is the documentation for the `mdsanima-shell` library, which is used to execute _Shell Scripts_ on **GNU/Linux** systems, like _Debian_ or _Ubuntu_. | ||
This is the documentation for the `mdsanima-shell` library. | ||
|
||
The functions in this library are designed to manipulate the state of the computer and are commonly used in my `dotfiles` and other projects. | ||
## Introduction | ||
|
||
This library contains functions thats help to execute _Shell Scripts_ on **GNU/Linux** systems, like _Debian_ or _Ubuntu_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (c) 2024 MDSANIMA DEV. All rights reserved. | ||
# Licensed under the MIT license. | ||
|
||
# This library is designed to print event names in colors. Events are displayed | ||
# with bold black text representing the event name and a selected color | ||
# background for emphasis. | ||
|
||
|
||
function event::debug() { | ||
print::color -fg ${BLACK} -bg ${GRAY} -b " DEBUG " | ||
} | ||
|
||
function event::dev() { | ||
print::color -fg ${BLACK} -bg ${BLUE} -b " DEV " | ||
} | ||
|
||
function event::error() { | ||
print::color -fg ${BLACK} -bg ${RED} -b " ERROR " | ||
} | ||
|
||
function event::info() { | ||
print::color -fg ${BLACK} -bg ${SKY} -b " INFO " | ||
} | ||
|
||
function event::success() { | ||
print::color -fg ${BLACK} -bg ${LIME} -b " SUCCESS " | ||
} | ||
|
||
function event::warning() { | ||
print::color -fg ${BLACK} -bg ${ORANGE} -b " WARNING " | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters