webpro / dotfiles Goto Github PK
View Code? Open in Web Editor NEWDotfiles for macOS
Dotfiles for macOS
When using dotfiles, the configuration is altered such that terminal windows will not properly restore as per the default behaviour
Sparkling fresh MacOs install on a sparking fresh MBP here, cloned to ~/.dotfiles/
and ran make
from the dotfiles directory but looks like homebrew isn't making it into PATH
? I'm trying to step though the Makefile but with a dozen tabs open, my command of make
is more like a weak suggestion. I'll update here if I figure something out.
==> Downloading and installing Homebrew...
HEAD is now at 17e9adef2 Merge pull request #13337 from Homebrew/dependabot/bundler/Library/Homebrew/parallel_tests-3.11.0
Updated 1 tap (homebrew/core).
Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the 'Next steps' section below.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/atp/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
https://docs.brew.sh
if ! grep -q /opt/homebrew/bin/bash /private/etc/shells; then \
brew install bash bash-completion@2 pcre && \
sudo append /opt/homebrew/bin/bash /private/etc/shells && \
chsh -s /opt/homebrew/bin/bash; \
fi
/bin/bash: brew: command not found
make: *** [bash] Error 127
Hi, we just wanted to let you know that you are still linking to the old Homebrew Cask homepage (caskroom.io
) in README.md
. This domain expired a few years ago and is not controlled by Homebrew anymore.
When you get a chance, please update the link to https://brew.sh/ or https://formulae.brew.sh/cask/.
Thank you,
the Homebrew team.
lars@macbook-pro ~ ❯ dotfiles osx
Applying /Users/lars/.dotfiles/osx/defaults-chrome.sh
Applying /Users/lars/.dotfiles/osx/defaults.sh
Password:
nvram: Error setting variable - 'boot-args': (iokit/common) general error
No matching processes belonging to you were found
/:
Indexing enabled.
/:
Indexing enabled.
Done. Some changes may require a logout/restart to take effect.
lars@macbook-pro ~ ❯
Hi, is it possible to do script for this settings? i search hard bud cant find
"Finder: items in the sidebar"
show Mac
hide iCloud/recents
defaults write com.apple.finder ShowRecentTags -bool false
"Settings-general-RecentItems - NONE"
"set F13(printScr) for save-screenshot-as-file"
"set Alt+F13(printScr) for save-pic-of-area-as-file"
"Mojave Settings-Update -ALL disable"
In defaults.sh, you have the following (introduced in 7f79900):
# Disable audio feedback when volume is changed
write com.apple.sound.beep.feedback -bool false
That looks like it is missing the defaults
command and should be:
# Disable audio feedback when volume is changed
defaults write com.apple.sound.beep.feedback -bool false
Details are here, but basically in Monterrey Apple removes /usr/bin/python
. Workaround that worked for me was adding the following (as mentioned in the thread) in the brewfile.
$ brew tap lotyp/homebrew-formulae
$ brew install lotyp/formulae/dockutil
Happy to open a PR if such a solution fits your liking, but it's a hack so I wanted to mention it first.
Ubuntu 20.04 fresh install.
run dotfiles test:
línea 62: sub_bats: orden no encontrada
'bats' is not a known command or has errors.
Manually install bats, but maybe Makefile should install it?
I am setting up a new Mac, felt like maybe it's appropriate to share my experience. After El Capitan, session functionality was added to terminal which adds output to the Terminal when sessions are ended.
This causes the symlinking done in install.sh
to link to $DOTFILES_DIR/<dir>/?Saving session...complete<etcetc>
instead of the proper file, and then aborts the installation.
Temporarily setting SHELL_SESSION_HISTORY=0
and creating a temporary ~/.bash_sessions_disable
file resolved the issue. Felt I should share since this had me giving up for a couple of weeks.
Hello,
first of all thanks for the nice introduction to dotfiles and posting your dotilfes code open source!
Second of all, I found a line which I think is not correct. Are you sure about overwriting your pull
alias? Seems like a dangerous bug:
alias push="git push"
alias pull="git pull"
alias pull="git push --force"
Cheers!
Hey Lars,
thank you very much for sharing your great set of dotfiles. I am experiencing a very slow start with nvm and rvm bash-files enabled in runcom/.bash_profile. It takes nearly 5 seconds to launch a new shell. Disabling both modules reduces startup time to below 1 second.
Do you see similar results with your setup?
Patrick
I'm not sure of the why just yet, but on both an existing and fresh install of macOS 10.14.1 (mojave) LS_COLORS doesn't work for me unless I move system/.alias
to source earlier in runcom/.bash_profile
Updating the order on line 26 from
function,function_*,path,env,alias,grep,prompt,nvm,completion,custom
to
function,function_*,alias,path,env,grep,prompt,nvm,completion,custom
has LS_COLORS doing its thing again for me.
I'm not seeing any problems as a result of the change, but as I'm not sure of the cause I thought I should just post as an issue rather than a PR.
When I follow the readme to install this repo on a fresh install of MacOS Sonoma (Macbook M1), I get the following error:
% make
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$" || exit; done 2>/dev/null &
is-executable brew || curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh | bash
if ! grep -q bash /private/etc/shells; then \
brew install bash bash-completion@2 pcre && \
sudo append bash /private/etc/shells && \
chsh -s bash; \
fi
brew install git git-extras
make: brew: No such file or directory
make: *** [git] Error 1
I'm having a heck of a time troubleshooting this because it makes no sense. If I change brew
to /opt/homebrew/bin/brew
, it works. If I print the PATH
immediately before the Makefile calls brew, it shows /opt/homebrew/bin
in the path. If I add which brew
to the Makefile just before brew
, it correctly shows /opt/homebrew/bin/brew
. And yet... when the Makefile actually tries to run brew, you get No such file or directory
🤷
Hi there,
First off: this repo has been a huge help for me!
I have one problem though: Is there a way to make the scripts in the /bin
folder executable without the need to do a chmod +x
for the whole folder?
When I try to run for instance the dotfiles
I get a permission denied
.
Running on Mac OS X 10.13.4. The folder is added to my PATH
I was struggling with my old fork of this repo, decided to pull master and fiddle. Doesn't seem like is-executable
is defined anywhere in the code anymore. Commit history seems to indicate it used to be in .function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.