Просмотр исходного кода

Added quotes around 'cpwd' command

Marius Schwarz 1 год назад
Родитель
Сommit
476f6a8334
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .bash_aliases

+ 1 - 1
.bash_aliases

@@ -89,7 +89,7 @@ alias cdt='cd $HOME/documents/tools'
 alias cdv='cd $HOME/documents/vms/vagrant-vms'
 
 # copy the current path to clipboard
-alias cpwd='xclip -selection clipboard -i <(pwd | tr -d "\n")'
+alias cpwd='xclip -selection clipboard -i <(pwd | tr -d "\n" | sed "s/^/\"/;s/$/\"/")'
 
 # copy the last command issued to the clipboard
 alias clc='fc -ln -1 | tr -d "\n" | sed "s/^\s*//g" | xclip -selection clipboard -i'