Skip to content

Instantly share code, notes, and snippets.

@IMelker
Created September 22, 2020 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IMelker/8f4008fc48bccbc636d7dda82cd8adf2 to your computer and use it in GitHub Desktop.
Save IMelker/8f4008fc48bccbc636d7dda82cd8adf2 to your computer and use it in GitHub Desktop.
This is workaround for faster CLion file transfer in context of remote host
#!/bin/bash
#
# This is workaround for faster CLion file transfer in context of remote host
#
excludes=()
[[ $PWD =~ cmake-build- ]] && excludes=('--exclude=*.o' '--exclude=./bin' '--exclude=./lib')
first="$1"
shift
file="$1"
shift
exec /bin/tar "$first" "$file" "${excludes[@]}" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment