From 3a7a6d89708a62ca2efd8b36dd44fa30d461f23a Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 14 Mar 2018 21:53:11 -0400 Subject: Clean up home scripts, split again --- link.zsh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 link.zsh (limited to 'link.zsh') diff --git a/link.zsh b/link.zsh new file mode 100755 index 00000000..42c8d04c --- /dev/null +++ b/link.zsh @@ -0,0 +1,19 @@ +#!/usr/bin/env zsh +set -o errexit -o nounset -o pipefail + +if [ $# -eq 1 ]; then + linkPath="$1" + filePath="$PWD/home/${linkPath#$HOME/}" + [ ! -f "$filePath" ] + mkdir -p $(dirname "$filePath") + mv "$linkPath" "$filePath" +fi + +find home -type f | while read findPath; do + filePath="$PWD/$findPath" + linkPath="$HOME/${findPath#home/}" + [ -L "$linkPath" ] && continue + mkdir -p $(dirname "$linkPath") + ln -s "$filePath" "$linkPath" + echo "$linkPath" +done -- cgit 1.4.1 b right'>
summary refs log tree commit diff
path: root/CMakeLists.txt (unfollow)
Commit message (Expand)Author
2022-01-23Upscale icons for macOSJune McEnroe
2022-01-23Add icons to Windows and macOS appsJune McEnroe
2022-01-23Account for ICOs lying about bpp, drop BITMAPCOREHEADERJune McEnroe
2022-01-23Add ico2png converterJune McEnroe
2022-01-23Allow screensaver/sleepJune McEnroe
2022-01-22Only open the ICO file once we have something to outputJune McEnroe
2022-01-22Fix size of padding counterJune McEnroe
2022-01-22Add exe2ico extractorJune McEnroe
2022-01-22Enable ctrl-click right-click emulation in freecellJune McEnroe
2022-01-22Build macOS .app bundlesJune McEnroe
2022-01-20Only use cells for moveColumnJune McEnroe
2022-01-19Add SDL2Config.cmake workarounds for MinGW compilerWilliam D. Jones
2022-01-19Only require CJune McEnroe
2022-01-19Only require CJune McEnroe
2022-01-19Add basic installJune McEnroe
2022-01-19Use cards with add_subdirectoryJune McEnroe
2022-01-19Replace build system with cmakeJune McEnroe
2022-01-19Replace build system with cmakeJune McEnroe
2020-03-31Allow choosing freecell game on command lineJune McEnroe
2020-01-27Remove cards submoduleJune McEnroe
2019-12-19Remove READMEJune McEnroe
2019-12-16Update submodule URLJune McEnroe
2019-12-15Use symlink for README.3June McEnroe
2019-08-27Show game number in titleJune McEnroe
2019-08-27Replicate the FreeCell LCG and deal algorithmJune McEnroe
2019-08-26Move as deep a stack as possible to empty columnsJune McEnroe
2019-08-26Simplify card and stack function namesJune McEnroe
2019-08-26Clean up namingJune McEnroe
2019-08-25Rewrite FreeCellJune McEnroe
2019-08-25Build with cards submoduleJune McEnroe
2019-08-25Add cards submoduleJune McEnroe
2019-08-25Remove files from cards repoJune McEnroe
2019-08-22Add READMEJune McEnroe
2019-08-22Add exampleJune McEnroe
2019-08-22Add FILES sectionJune McEnroe
2019-08-22Remove gamesJune McEnroe
2019-04-04Mark card functions inlineJune McEnroe
2019-04-04Add listClearJune McEnroe
2019-04-03Tweak mouseButtonUp code a bitJune McEnroe
2019-04-03Check gameAvail on double-clickJune McEnroe
2019-04-02Select and move cards on mouse upJune McEnroe
2019-04-01Add idSkipJune McEnroe
2019-03-31Fix weird typoJune McEnroe
2019-03-30Add undo to freecellJune McEnroe
2019-03-29Replace path.h with asset.hJune McEnroe
2019-03-29Add king win faceJune McEnroe
2019-03-29Change king face directionJune McEnroe
2019-03-29Load king bitmaps in freecellJune McEnroe