diff options
author | William Carroll <wpcarro@gmail.com> | 2017-01-17T22·51-0500 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-01-17T22·51-0500 |
commit | 8ca1874d1527f09336b758600e828ee1e5c74db5 (patch) | |
tree | a039ef97a432d002b7d8ba4b3f967e42db3ca696 /configs/setup_configs.sh | |
parent | 3958a7c10da9d6df21822419ca48ab9e6593e6b1 (diff) |
Adds fish shell rc; supports fish shell in Vim
Diffstat (limited to 'configs/setup_configs.sh')
-rwxr-xr-x | configs/setup_configs.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/configs/setup_configs.sh b/configs/setup_configs.sh index dd1f55eef7fc..5e56e51402d0 100755 --- a/configs/setup_configs.sh +++ b/configs/setup_configs.sh @@ -36,3 +36,27 @@ for i in {1..5}; do fi echo "" done + + +# Fish Shell is a special case +cf_dir="${HOME}/.configs/fish" +cf="config.fish" + +if [ -f "${cf_dir}/${cf}" ] && [ ! -L "${cf_dir}/${cf}" ]; then + echo -n "Backing up ${cf} ... " && \ + mv "${cf_dir}/${cf}" "${HOME}/${cf}.bak" && \ + echo "Done." +fi + +if [ -L "${cf_dir}/${cf}" ]; then + if [ $(readlink "${cf_dir}/${cf}") = "${pc_settings_path}/configs/${cf}" ]; then + echo "Already properly symlinked to \"${pc_settings_path}/configs\"." + else + echo "Already symlinked but NOT to the proper location. Aborting..." + fi +else + echo -n "Symlinking to ${pc_settings_path}/configs/${cf} ... " && \ + ln -s "${pc_settings_path}/configs/${cf}" "${cf_dir}/${cf}" && \ + echo "Done." +fi +echo "" |