Skip to content

Commit

Permalink
🐛 Fixed issue with lsd install detection in pwsh/aliases.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
patevs committed Nov 2, 2021
1 parent 63de686 commit 674a455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pwsh/aliases.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Set-Alias -Name wh -Value where.exe
Set-Alias -Name vim -Value nvim

# Ensure `thefuck` is installed
# ! if ([String] $(which thefuck).length -gt 0) {
if (which thefuck){
# Correct the previous command using `thefuck`
$env:PYTHONIOENCODING="utf-8"
Expand All @@ -118,7 +119,7 @@ if (which thefuck){
Set-Alias -Name bash -Value "C:\Program Files\Git\bin\bash.exe"

# Directory Listing: Use `lsd.exe` if available
if (which lsd) {
if ([String] $(which lsd).length -gt 0) {
# List directory contents in short format
${function:l} = { Write-Host ""; lsd --color always --icon always @args }
# List directory contents
Expand Down

0 comments on commit 674a455

Please sign in to comment.