{"id":19244049,"url":"https://github.com/tauseedzaman/ps1-dev-profile","last_synced_at":"2025-04-21T09:33:29.054Z","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":"2025-04-01T12:21:25.707Z","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":250032440,"owners_count":21363837,"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-11-09T17:21:31.747Z","updated_at":"2025-04-21T09:33:24.005Z","avatar_url":"https://github.com/tauseedzaman.png","language":"PowerShell","funding_links":[],"categories":[],"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## Index\r\n\r\n1. [cpwd](#cpwd)\r\n2. [pas](#pas)\r\n3. [pa](#pa)\r\n4. [gpush](#gpush)\r\n5. [touch](#touch)\r\n6. [phpserver](#phpserver)\r\n7. [pyserver](#pyserver)\r\n8. [gt](#gt)\r\n9. [ex](#ex)\r\n10. [b](#b)\r\n11. [mkg](#mkg)\r\n12. [head](#head)\r\n13. [tail](#tail)\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\"\u003e\u003c/a\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\"\u003e\u003c/a\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\"\u003e\u003c/a\u003ePush Git Changes with Message\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\"\u003e\u003c/a\u003eCreate or Touch File, just like touch command in unix envirement\r\n\r\n```sh\r\ntouch \u003cfilename\u003e\r\n```\r\ncreate file if not argument is provided then temp.txt is created.\r\n\r\n#### 💻\u003ca name=\"phpserver\"\u003e\u003c/a\u003eStart PHP built-in web server\r\n\r\n```sh\r\nphpserver \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=\"pyserver\"\u003e\u003c/a\u003eStart Python HTTP server\r\n\r\n```sh\r\npyserver \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\"\u003e\u003c/a\u003eNavigates to a specified folder based on partial name.\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\"\u003e\u003c/a\u003eOpen current directory in File Explorer\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\"\u003e\u003c/a\u003eGo one step back to prev directory.. its like `cd ..`\r\n\r\n```sh\r\nb\r\n```\r\nGo back to the previous directory\r\n\r\n#### 💻\u003ca name=\"mkg\"\u003e\u003c/a\u003eCreate a directory and navigate to it\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\"\u003e\u003c/a\u003eDisplay the first few lines of a file\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\"\u003e\u003c/a\u003eDisplay the last few lines of a file\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\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"}