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
ls_alias="ls --color=auto" | |
while read line | |
do | |
if [[ $line ]] && [[ ${line:0:1} != '#' ]] | |
then | |
export ls_alias+=" -I \"$line\"" | |
fi | |
done < ~/.gitignore | |
alias ls=$ls_alias |
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
(defun leven-distance (string1 string2) | |
(if (= (length string1) 0) | |
(length string2) | |
(if (= (length string2) 0) | |
(length string1) | |
(min (+ (leven-distance (subseq string1 0 (- (length string1) 1)) | |
string2) | |
1) |
NewerOlder