First, here's the script I'm talking about: https://github.com/Greduan/dotfiles/blob/master/scripts/symlinks.sh
Check line 20. It has the following content
dest = "$HOME/.`basename \"${source%.*}\"`"
Since I took this from another script, I have no idea what it actually does. I'm guessing what it does is if the source file is named vimrc.vim.symlink it'll output .vimrc.vim, correct?
If not correct, could you please explain what it does?
And could you please help me figure out how to make it so that if the file is vimrc.vim.symlink, how can I make it so that I can get .vimrc?
Please check the script so that you can understand what I'm talking about. :)