3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

homebrew で入れたfindutils binutils coreutilsのsymlinkを~/binに作る

Posted at

homebrew で入れたfindutils binutils coreutilsのsymlinkを~/binに作る

あとは.zshrcとかで$HOME/binにPATHを通してあげればいい
(PATHは先頭に通しておく)


#! /usr/bin/env zsh
#-*- coding: utf-8 -*-
mkdir -p ~/bin
for package in findutils binutils coreutils
do
    for filepath in `find $(brew --prefix $package)/bin -type f -print`
    do
        name=`basename $filepath`
        name=${name#g}
        ln -s $filepath ~/bin/$name
    done
done
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?