mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
Make copydir plugin work on Linux
This commit is contained in:
parent
550ccca91c
commit
c7e9d9a60e
1 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
if [[ $(uname -s) != 'Darwin' ]]; then
|
||||||
|
alias pbcopy='xclip -selection clipboard'
|
||||||
|
fi
|
||||||
|
|
||||||
function copydir {
|
function copydir {
|
||||||
pwd | tr -d "\r\n" | pbcopy
|
pwd | tr -d "\r\n" | pbcopy
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue