{"id":14063417,"url":"https://github.com/tauseedzaman/PS1-Dev-Profile","last_synced_at":"2025-07-29T15:33:05.624Z","repository":{"id":239698933,"uuid":"800295200","full_name":"tauseedzaman/PS1-Dev-Profile","owner":"tauseedzaman","description":"PowerShell Profile that every developer should have :).","archived":false,"fork":false,"pushed_at":"2024-06-28T12:43:13.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T00:11:24.269Z","etag":null,"topics":["developerutilities","devopstools","devtools","powershell","profile","ps1-profile"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tauseedzaman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-14T04:18:29.000Z","updated_at":"2024-07-01T19:57:09.000Z","dependencies_parsed_at":"2024-05-15T18:06:18.712Z","dependency_job_id":"c745d5da-16ee-4d95-b17f-0b1fd2848a46","html_url":"https://github.com/tauseedzaman/PS1-Dev-Profile","commit_stats":null,"previous_names":["tauseedzaman/ps1-dev-profile"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauseedzaman%2FPS1-Dev-Profile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauseedzaman%2FPS1-Dev-Profile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauseedzaman%2FPS1-Dev-Profile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tauseedzaman%2FPS1-Dev-Profile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tauseedzaman","download_url":"https://codeload.github.com/tauseedzaman/PS1-Dev-Profile/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228028389,"owners_count":17858328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developerutilities","devopstools","devtools","powershell","profile","ps1-profile"],"created_at":"2024-08-13T07:03:19.938Z","updated_at":"2025-07-29T15:33:05.145Z","avatar_url":"https://github.com/tauseedzaman.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# PowerShell Profile For Developers\r\n\r\n## Overview\r\n\r\nThis repository contains a collection of useful PowerShell functions and aliases for developers. The goal is to provide a starting point for developers to customize their PowerShell profiles and share their own contributions.\r\n\r\n## 📘 Alias Index\r\n\r\n1. **[`cpwd`](#cpwd)** — Copies current path to clipboard  \r\n   → `Copy-PathToClipboard`\r\n\r\n2. **[`pas`](#pas)** — Starts Laravel development server  \r\n   → `Start-LaravelServer`\r\n\r\n3. **[`pa`](#pa)** — Runs `php artisan` in Laravel project  \r\n   → `Invoke-Artisan`\r\n\r\n4. **[`gpush`](#gpush)** — Push git changes with a commit message  \r\n   → `Push-GitChanges`\r\n\r\n5. **[`touch`](#touch)** — Creates a file (defaults to `tmp.txt` if no name provided)  \r\n   → `New-File`\r\n\r\n6. **[`phpserve`](#phpserve)** — Starts PHP built-in web server  \r\n   → `Start-phpserve`\r\n\r\n7. **[`pyserve`](#pyserve)** — Starts Python HTTP server  \r\n   → `Start-PythonServer`\r\n\r\n8. **[`gt`](#gt)** — Navigate to a folder using a partial name  \r\n   → `Find-AndOpenFolder`\r\n\r\n9. **[`Scane-Folders`](#Scane-Folders)** — Scan and cache folder paths from home directory  \r\n   → `Index-Folders`\r\n\r\n10. **[`ex`](#ex)** — Open current directory in File Explorer  \r\n    → `Open-InExplorer`\r\n\r\n11. **[`b`](#b)** — Go back to the previous directory  \r\n    → `Go-PreviousDirectory`\r\n\r\n12. **[`mkg`](#mkg)** — Create a directory and enter it  \r\n    → `New-AndEnterFolder`\r\n\r\n13. **[`head`](#head)** — Show first few lines of a file  \r\n    → `Get-FileHead`\r\n\r\n14. **[`tail`](#tail)** — Show last few lines of a file  \r\n    → `Get-FileTail`\r\n\r\n15. **[`dl`](#dl)** — Download a file using BITS with resume support  \r\n    → ` Start-FileDownload`\r\n\r\n## Usage\r\nTo start using the PowerShell Developer Profile, follow these steps:\r\n\r\n1. Clone the repository to your local machine:\r\n\r\n   ```sh\r\n   git clone https://github.com/tauseedzaman/PS1-Dev-Profile\r\n   ```\r\n2. Import the profile in your PowerShell environment. Open PowerShell and run:\r\n   ```sh\r\n   notepad $PROFILE\r\n   ```\r\n   Add the following line to your profile file:\r\n   ```sh\r\n   . \u003cpath-to-repo\u003e\\ps1-dev-profile.ps1\r\n   ```\r\n\r\n   Replace `\u003cpath-to-repo`\u003e with the path to the cloned repository.\r\n\r\n3. Save and close the profile file. Then restart PowerShell, and you're ready to go!\r\n\r\n\r\n\r\n## Aliases\r\n\r\n#### ⭕ \u003ca name=\"cpwd\"\u003eCopy Working Directory Path\u003c/a\u003e\r\n\r\n```sh\r\ncpwd\r\n```\r\nCopies the current working directory path to the clipboard, making it easy to share or use in other commands.\r\n\r\n#### ⭕ \u003ca name=\"pas\"\u003eStart Laravel Development Server\u003c/a\u003e\r\n\r\n```sh\r\npas\r\n```\r\nStarts the Laravel development server, allowing you to quickly test and preview your application.\r\n\r\n#### ⭕ \u003ca name=\"pa\"\u003eRun PHP Artisan\u003c/a\u003e\r\n\r\n```sh\r\npa\r\n```\r\n\r\nRuns the PHP Artisan command-line tool for Laravel, providing a convenient way to manage and interact with your Laravel project.\r\n\r\n#### ⭕ \u003ca name=\"gpush\"\u003ePush Git Changes with Message\u003c/a\u003e\r\n\r\n```sh\r\ngpush \u003cmessage\u003e\r\n```\r\nPushes local Git changes to the remote repository with a custom commit message, streamlining the Git workflow.\r\n\r\n#### ⭕ \u003ca name=\"touch\"\u003eCreate or Touch File, just like touch command in unix envirement\u003c/a\u003e\r\n\r\n```sh\r\ntouch \u003cfilename\u003e\r\n```\r\ncreate file if not argument is provided then tmp.txt is created.\r\n\r\n#### ⭕ \u003ca name=\"phpserve\"\u003eStart PHP built-in web server\u003c/a\u003e\r\n\r\n```sh\r\nphpserve \u003cport\u003e\r\n```\r\nStart PHP built-in web server in the current folder, if port is not provided then default port is 8080\r\n\r\n#### ⭕ \u003ca name=\"pyserve\"\u003eStart Python HTTP server\u003c/a\u003e\r\n\r\n```sh\r\npyserve \u003cport\u003e\r\n```\r\nStart Python built-in Http server in the current folder, if port is not provided then default port is 8080\r\n\r\n#### ⭕ \u003ca name=\"gt\"\u003eNavigates to a specified folder based on partial name\u003c/a\u003e\r\n\r\n```sh\r\ngt \u003csome-folder\u003e\r\n```\r\nThe `gt` function searches for a folder whose name matches the specified partial name. If multiple matches are found, it prompts you to select one. Once a unique match is determined, it navigates directly to that folder.\r\n\r\nBefore Using `gt`:\r\nBefore using the `gt` function, it's recommended to run the Scane-Folders function. This function scans your user home directory and stores the paths of all subfolders in a file called folderPaths.txt. This file is used by the `gt` function to quickly locate folders based on partial names.\r\n\r\nTo update folder paths, run:\r\n\r\n```sh\r\nScane-Folders\r\n```\r\n\r\n*Example:*\r\n\r\nSuppose you want to navigate to a folder named \"Documents\" within your user directory, but you're not sure of the full path. You can simply use gt followed by the partial name:\r\n\r\n```sh\r\ngt Documents\r\n```\r\nIf multiple folders with \"Documents\" in their names exist, `gt` will display them and prompt you to select the desired one. After selecting, you will be navigated to the chosen folder\r\n\r\n#### ⭕ \u003ca name=\"ex\"\u003eOpen current directory in File Explorer\u003c/a\u003e\r\n\r\n```sh\r\nex\r\n```\r\nOpens the current working directory in File Explorer\r\n\r\n#### ⭕ \u003ca name=\"b\"\u003eGo one step back to prev directory.. its like `cd ..`\u003c/a\u003e\r\n\r\n```sh\r\nb\r\n```\r\nGo back to the previous directory\r\n\r\n#### ⭕ \u003ca name=\"mkg\"\u003eCreate a directory and navigate to it\u003c/a\u003e\r\n\r\n```sh\r\nmkg \u003cdirectory-name\u003e\r\n```\r\nCreate a directory with provided name and navigates into it\r\n\r\n#### ⭕ \u003ca name=\"head\"\u003eDisplay the first few lines of a file\u003c/a\u003e\r\n\r\n```sh\r\nhead \u003cfile-path\u003e \u003clines-count\u003e\r\n```\r\nDisplay the first few lines of a file, the number of line showed by default is 10.\r\n\r\n#### ⭕ \u003ca name=\"head\"\u003eDisplay the last few lines of a file\u003c/a\u003e\r\n\r\n```sh\r\ntail \u003cfile-path\u003e \u003clines-count\u003e\r\n```\r\nDisplay the last few lines of a file, the number of line showed by default is 10.\r\n\r\n#### ⭕ \u003ca name=\"dl\"\u003eDownload a file using BITS with resume support\u003c/a\u003e \r\n\r\n```sh\r\ndf \u003cfile-url\u003e\r\n```\r\n\r\n\r\n## Contribution Guidelines\r\n\r\n1. Fork the repository and create a new branch for your feature or fix.\r\n2. Write a clear and concise commit message describing your changes.\r\n3. Open a pull request to merge your changes into the main branch.\r\n\r\n## License\r\n\r\nThis repository is licensed under the MIT License.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauseedzaman%2FPS1-Dev-Profile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftauseedzaman%2FPS1-Dev-Profile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftauseedzaman%2FPS1-Dev-Profile/lists"}