History

Bật tính năng lịch sử câu lệnh ở PowerShell (giống fzf):

Set-PSReadLineOption -PredictionSource History

Function New-SymLink ($link, $target) {
	if (test-path \-pathtype container $target) {
		$command \= "cmd /c mklink /d"
	} else {
		$command \= "cmd /c mklink"
	}
	invoke-expression "$command $link $target"
}

Resources