aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bashrc_third_party
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-08-17 22:58:15 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2016-08-17 22:58:15 +0200
commit35d858363a88f1d985ba36cf0e18de6ab0ccfcd1 (patch)
tree611e856f77effc512aaa317137039bcb9f49060e /.bashrc_third_party
parentmove Windows-specific stuff to .appdata/ (diff)
downloadlinux-home-35d858363a88f1d985ba36cf0e18de6ab0ccfcd1.tar.gz
linux-home-35d858363a88f1d985ba36cf0e18de6ab0ccfcd1.zip
move .bashrc_* to .bash_utils/
Diffstat (limited to '.bashrc_third_party')
-rw-r--r--.bashrc_third_party52
1 files changed, 0 insertions, 52 deletions
diff --git a/.bashrc_third_party b/.bashrc_third_party
deleted file mode 100644
index 58cc7da..0000000
--- a/.bashrc_third_party
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env bash
-
-# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is part of the "Cygwin configuration files" project.
-# For details, see https://github.com/egor-tensin/cygwin-home.
-# Distributed under the MIT License.
-
-ensure_symlinks_enabled() {
- case "${CYGWIN:-}" in
- *winsymlinks:native*) ;;
- *winsymlinks:nativestrict*) ;;
-
- *)
- echo "${FUNCNAME[0]}: native Windows symlinks aren't enabled in Cygwin" >&2
- return 1
- ;;
- esac
-}
-
-symlink_preferences() (
- set -o errexit -o nounset -o pipefail
-
- if [ "$#" -ne 2 ]; then
- echo "usage: ${FUNCNAME[0]} SRC_DIR DEST_DIR" >&2
- return 1
- fi
-
- ensure_symlinks_enabled
-
- local src_dir="$1"
- local dest_dir="$2"
-
- mkdir -p "$dest_dir"
-
- find "$src_dir" -maxdepth 1 -type f -exec ln --force -s {} "$dest_dir" \;
-)
-
-symlink_sublime_preferences() (
- set -o errexit -o nounset -o pipefail
-
- symlink_preferences \
- "$HOME/.appdata/Sublime Text 3" \
- "$APPDATA/Sublime Text 3/Packages/User"
-)
-
-symlink_ghc_preferences() (
- set -o errexit -o nounset -o pipefail
-
- symlink_preferences \
- "$HOME/.appdata/ghc" \
- "$APPDATA/ghc"
-)