[feature] mkdir / copy fullpath / copy file name

This commit is contained in:
Klesh Wong 2021-02-28 12:33:19 +08:00
parent fe53531391
commit 2e873564c6
3 changed files with 9 additions and 1 deletions

5
cli/lf/lfrc.win Normal file
View File

@ -0,0 +1,5 @@
cmd mkdir %mkdir "$@"
cmd fp %powershell -NoProfile -Command Set-Clipboard $env:f
cmd fn %powershell -NoProfile -Command Set-Clipboard (Split-Path -Leaf ($env:f -replace '"',''))

3
win/setup/lf.ps1 Normal file
View File

@ -0,0 +1,3 @@
$dotfiles=(Get-Item $PSScriptRoot).Parent.Parent.FullName
New-Item -Force -ItemType SymbolicLink -Target $dotfiles\cli\lf\lfrc.win -Path $Env:LOCALAPPDATA\lf\lfrc

View File

@ -1,3 +1,3 @@
$dotfiles=(Get-Item $PSScriptRoot).Parent.Parent.FullName
New-Item -Force -ItemType SymbolicLink -Target $dotfiles\WindowsTerminal\settings.json -Path $Env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
New-Item -Force -ItemType SymbolicLink -Target $dotfiles\win\WindowsTerminal\settings.json -Path $Env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json