#Bash script aliases
alias aliasv='cat ~/.bash_aliases' # View the contents of .bash_aliases alias aliase='nano ~/.bash_aliases' # Edit .bash_aliases file with nano alias aliasr='source ~/.bash_aliases' # Reload .bash_aliases alias aliasupdate='source ~/.bash_aliases && source ~/.bashrc' # Reload both .bash_aliases and .bashrc
alias bashrcv='cat ~/.bashrc' # View the contents of .bashrc alias bashrce='nano ~/.bashrc' # Edit the .bashrc file with nano alias bashrcr='source ~/.bashrc' # Reload the .bashrc file alias bashre='nano ~/.bash_profile' # Edit .bash_profile for macOS/Linux systems that use it alias bashrv='cat ~/.bash_profile' # View .bash_profile contents
alias profilev='cat ~/.profile' # View the contents of .profile (often used in Ubuntu systems) alias profilee='nano ~/.profile' # Edit the .profile file alias profiler='source ~/.profile' # Reload the .profile file
alias zshrcv='cat ~/.zshrc' # View the contents of .zshrc alias zshrce='nano ~/.zshrc' # Edit .zshrc with nano alias zshrcupdate='source ~/.zshrc' # Reload the .zshrc file
alias reload='exec bash' # Restart the current shell session to apply changes alias cls='clear' # Clear the terminal screen
alias gs='git status' # Show the working tree status alias ga='git add .' # Add all changes to staging area alias gcmsg='git commit -m' # Commit with a message alias gp='git push' # Push changes to the remote repository alias gpo='git push origin' # Push to origin alias gpull='git pull' # Pull latest changes from remote
alias gb='git branch' # List branches alias gba='git branch -a' # List all branches (local and remote) alias gco='git checkout' # Switch branches or restore working tree files alias gcb='git checkout -b' # Create a new branch and switch to it alias gbr='git branch -d' # Delete a branch (local) alias gbdr='git push origin --delete' # Delete a remote branch
alias gm='git merge' # Merge a branch into the current one alias grb='git rebase' # Rebase the current branch onto another alias grbc='git rebase --continue' # Continue rebasing after resolving conflicts alias grbi='git rebase -i' # Interactive rebase for rewriting history alias gabort='git rebase --abort' # Abort an ongoing rebase
alias glog='git log --oneline --graph --decorate --all' # Pretty log with graph alias gdiff='git diff' # Show changes between working directory and index alias gdiffstaged='git diff --cached' # Show changes between index and last commit alias gshow='git show' # Show details of a commit
alias greset='git reset --hard' # Reset current HEAD to the specified state
alias gresetsoft='git reset --soft HEAD1' # Undo the last commit, keeping changes staged
alias gundo='git reset --soft HEAD1' # Undo the last commit but keep the changes
alias gundoadd='git reset HEAD' # Unstage files added to the index (reset staging)
alias gstash='git stash' # Stash changes for later alias gstashpop='git stash pop' # Apply and drop the most recent stash alias gstashlist='git stash list' # List all stashed changes alias gstashclear='git stash clear' # Clear all stashes
alias gf='git fetch' # Fetch updates from the remote repository alias gfa='git fetch --all' # Fetch from all remotes alias gprune='git fetch --prune' # Remove remote-tracking references for deleted branches
alias gtag='git tag' # List tags alias gtagcreate='git tag -a [tag_name] -m [message]' # Create a new annotated tag alias gtagpush='git push origin --tags' # Push all local tags to the remote
alias gremote='git remote -v' # List all remotes alias gremoteadd='git remote add origin [url]' # Add a remote repository alias gcloneremote='git clone [url]' # Clone a repository from a remote URL alias gremoveremote='git remote remove [name]' # Remove a remote repository
alias ginit='git init' # Initialize a new Git repository alias gclone='git clone [repo_url]' # Clone a GitHub repository alias gpullpr='git pull origin pull/[PR#]/head' # Fetch and checkout a GitHub pull request alias gfork='git remote add fork [fork_url]' # Add a fork
alias pn='pnpm' alias pni='pnpm install' # Install dependencies alias pns='pnpm start' # Start the application alias pnb='pnpm run build' # Build the project alias pnt='pnpm test' # Run tests alias pnr='pnpm run' # Run any script defined in package.json alias pnadd='pnpm add' # Add a new dependency alias pnadddev='pnpm add --save-dev' # Add a dev dependency alias pnup='pnpm update' # Update all packages alias pnupg='pnpm update --global' # Update global packages alias pnremove='pnpm remove' # Remove a package alias pnf='pnpm -F' # Filter workspace packages alias pnlink='pnpm link' # Symlink global binaries into the workspace alias pnrun='pnpm run' # Run scripts from package.json alias pnexec='pnpm exec' # Execute a binary alias pnwhy='pnpm why' # Show why a dependency is installed
alias sshconnect='ssh [user]@[host]' alias sshconfig='vim ~/.ssh/config' alias scprun='scp [file] [user]@[host]:[path]'
alias ni='npm install' # Install all dependencies alias nis='npm install --save' # Install a new package and save it as a dependency alias nid='npm install --save-dev' # Install a dev dependency alias nr='npm run' # Run any npm script alias nrdev='npm run dev' # Run the development server (usually for Next.js, React, or Node.js apps) alias ns='npm start' alias nb='npm run build' alias nrbuild='npm run build' # Run the build script alias nt='npm test' alias nr='npm run' alias nt='npm test' alias nr='npm run' alias nrstart='npm run start' # Start the app alias nrt='npm run test' # Run tests alias nrlint='npm run lint' # Run the linter alias nrfmt='npm run format' # Run the formatter (e.g., Prettier) alias nrd='npm run deploy' # Deploy the app alias npub='npm publish' # Publish a package to the npm registry
alias npadd='npm install' # Shortcut for installing any package alias npupd='npm update' # Update all packages to the latest versions alias npg='npm install -g' # Install a global package alias npl='npm list' # List installed packages alias npoutdated='npm outdated' # Check for outdated packages
alias nprm='npm uninstall' # Uninstall a package alias nprmg='npm uninstall -g' # Uninstall a global package
alias nplocal='npm install' # Install all dependencies in the project
alias npf='npm fund' # Show funding information for dependencies
alias npci='npm ci' # Clean install (install without modifying package-lock.json)
alias npclean='npm cache clean --force' # Clear the npm cache forcefully
alias npb='npm run build' # Build shortcut alias npdev='npm run dev' # Run the development server
alias npversion='npm version' # View or update the project version alias npv='npm --version' # Show npm version
alias npbump='npm version patch && npm publish' # Bump patch version and publish
#nvm aliases alias nnode='nvm use node' #use latest node version alias nodeupgrade='nvm install node --reinstall-packages-from=node' # For quicker version changes alias nvml='nvm list' # List installed Node versions alias nvmu='nvm use' # Switch to a specific Node version alias nvmuse='nvm use node' # Use the latest version of Node alias nvminstall='nvm install node' # Install the latest version of Node alias nvmaliasdefault='nvm alias default node' # Set the latest Node version as the default
alias yi='yarn install' alias ys='yarn start' alias yb='yarn build' alias yt='yarn test' alias yr='yarn run'
alias python='python3'
alias pyvenv='python3 -m venv venv' # Create a virtual environment in ./venv alias pyvenvnew='python3 -m venv [env_name]' # Create a virtual environment with a custom name
alias activatevenv='source venv/bin/activate' # Activate virtual environment alias deactivatevenv='deactivate' # Deactivate virtual environment
alias pyinstallreq='pip install -r requirements.txt' # Install all dependencies from requirements.txt
alias pyfreeze='pip freeze > requirements.txt' # Generate or update requirements.txt with installed packages
alias pyadd='pip install [package_name] && pip freeze > requirements.txt' # Install package and update requirements.txt
alias pyupgradepip='python3 -m pip install --upgrade pip' # Upgrade pip
alias pyinstall='pip install' # Shortcut for installing any package alias pyuninstall='pip uninstall' # Shortcut for uninstalling any package
alias pyoutdated='pip list --outdated' # List outdated packages
alias pyupdateall='pip install --upgrade $(pip freeze | grep -v "^-e" | cut -d = -f 1)' # Upgrade all packages
alias pyinstallglobal='pip install --user' # Install Python packages globally for the current user
alias pyrun='python3 [script.py]' # Run a Python script
#Composer aliases
alias compreq='composer require' alias compdump='composer dump-autoload' alias compremove='composer remove' alias compupd='composer update' alias complock='composer update --lock'
#basic aliases alias serve='php artisan serve' alias migrate='php artisan migrate' alias keygen='php artisan key:generate'
alias cacheclear='php artisan cache:clear' alias routeclear='php artisan route:clear' alias configclear='php artisan config:clear' alias viewclear='php artisan view:clear'
alias configcache='php artisan config:cache' alias routecache='php artisan route:cache'
alias migratefresh='php artisan migrate:fresh' alias migratefreshseed='php artisan migrate:fresh --seed' alias dbseed='php artisan db:seed'
alias queuework='php artisan queue:work' alias queuestop='php artisan queue:stop' alias eventgenerate='php artisan event:generate'
alias test='php artisan test' alias tinker='php artisan tinker'
alias compupd='composer update' alias compinst='composer install'
alias makecontroller='php artisan make:controller' alias makeview='php artisan make:view' alias makemodel='php artisan make:model' alias makemigration='php artisan make:migration' alias makeseeder='php artisan make:seeder' alias makejob='php artisan make:job'
alias nextdev='next dev' alias nextbuild='next build' alias nextstart='next start' alias nextlint='next lint' alias reactstart='react-scripts start' alias reactbuild='react-scripts build' alias reacttest='react-scripts test'
alias mysql_login='mysql -u root -p' alias mysql_import='mysql -u root -p [database_name] < [dumpfile.sql]' alias mysql_dump='mysqldump -u root -p [database_name] > [backupfile.sql]' alias mysql_showdbs='mysql -u root -p -e "SHOW DATABASES;"' alias mysql_connect='mysql -h [host] -u [user] -p[password]'
alias lampp_mysql='sudo /opt/lampp/lampp startmysql' alias lampp_apache='sudo /opt/lampp/lampp startapache' alias lampp_status='sudo /opt/lampp/lampp status'
alias dockerps='docker ps -a' alias dockerstart='docker start [container_name]' alias dockerstop='docker stop [container_name]' alias dockerrm='docker rm [container_name]' alias dockerrmi='docker rmi [image_name]' alias dockernetwork='docker network ls' alias dockerexec='docker exec -it [container_name] /bin/bash'
alias sys_status='systemctl status' alias sys_restart='systemctl restart' alias sys_enable='systemctl enable'