Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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