Skip to content

Instantly share code, notes, and snippets.

@AminulBD
Last active September 29, 2018 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AminulBD/7cf1943f9391f8be34a47aaaea108d36 to your computer and use it in GitHub Desktop.
Save AminulBD/7cf1943f9391f8be34a47aaaea108d36 to your computer and use it in GitHub Desktop.
Wndows 10 Shortcuts, Tips and Tricks

1. Powershell

  • Clear History in powershell: del (Get-PSReadlineOption).HistorySavePath
  • Set Execution Policy for current user: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  • Install Posh-Git for current user: Install-Module posh-git -Scope CurrentUser

Create Aliases

Example of artisan command:

# Artisan Alias. Example: art serve
function art {
    return php artisan @args
}

2. SSH and Git

  • Start SSH Agent Automaticaly: Set-Service -Name ssh-agent -StartupType Automatic
  • Set Git SSH Binary to Windows 10 Built-in: git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment