This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fcd --description "Fuzzy change directory" | |
if set -q argv[1] | |
set searchdir $argv[1] | |
else | |
set searchdir $HOME | |
end | |
# https://github.com/fish-shell/fish-shell/issues/1362 | |
set -l tmpfile (mktemp) | |
find $searchdir \( ! -regex '.*/\..*' \) ! -name __pycache__ -type d | fzf > $tmpfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
import Data.ByteString as B hiding (filter) | |
import Data.Set (fromList, member) | |
import Data.Text as T hiding (filter) | |
import Data.Text.Encoding | |
import System.Directory | |
import System.FilePath.Windows | |
-- work around encoding problems | |
main = recursiveDirectoryNames "." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
{- stack | |
--resolver lts-14.5 | |
--install-ghc | |
exec ghci | |
--package JuicyPixels | |
--package lens | |
--package split | |
-} | |
{-# LANGUAGE ScopedTypeVariables #-} |