Refactoring repository...
Some checks are pending
Check Conventional Commit / check-commit-message (push) Waiting to run

This commit is contained in:
CELESTIFYX
2025-01-14 19:02:06 +02:00
parent 876fa0988e
commit 08abac9e7d
33171 changed files with 4677 additions and 761 deletions

View File

@@ -0,0 +1,25 @@
# Maintainer: Eshan Roy <eshan@snigdhaos.org>
# Contributor: d3v1l0n <d3v1l0n@outlook.in>
pkgname=snigdhaos-powershell
org="Snigdha-OS"
branch="master"
pkgver=r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
pkgrel=1
pkgdesc="Snigdha OS PowerShell Config"
arch=('any')
license=('MIT')
depends=('powershell')
source=(
"$pkgname.tar.xz"
"${pkgname}.desktop"
)
sha256sums=('SKIP' 'SKIP')
install=$pkgname.install
package() {
mkdir -p "${pkgdir}/etc/skel/.config"
cp -r "${srcdir}/etc/skel/.config"/* "${pkgdir}/etc/skel/.config/"
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}

View File

@@ -0,0 +1,15 @@
$Host.UI.RawUI.WindowTitle = "SNIGDHA OS > PowerShell🔥"
function prompt {
$ESC = [char]27
$user = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
$currentLocation = $executionContext.SessionState.Path.CurrentLocation
$gitBranch = ""
if (Test-Path .git -or (Get-Command git -ErrorAction SilentlyContinue)) {
$gitBranch = $(git rev-parse --abbrev-ref HEAD 2>$null)
if ($gitBranch) {
$gitBranch = " ($gitBranch)"
}
}
"$ESC[0;36m┌── $user $gitBranch$ESC[0;31m$currentLocation$($([char]13))`n$ESC[0;36m└── 🌟 SnigdhaOS PowerShell 🔥 > $ESC[00m"
}

View File

@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Name=Snigdha OS PowerShell
Comment=PowerShell Configuration for Snigdha OS
Exec=pwsh -NoExit -Command "& {if (Test-Path '$HOME/.config/powershell/Microsoft.PowerShell_profile.ps1') { . '$HOME/.config/powershell/Microsoft.PowerShell_profile.ps1' } }"
Icon=/usr/share/pixmaps/snigdhaos-powershell.png
Terminal=true
Type=Application
Categories=Utility;System;Development;
StartupNotify=true

View File

@@ -0,0 +1,7 @@
post_install() {
echo -e "\n** The files have been installed in /etc/skel/.config/powershell **\n"
}
post_upgrade() {
post_install
}