Code Monkey home page Code Monkey logo

dotfiles's Introduction

-- mode: markdown; mode: visual-line; fill-column: 80 --

Licence By Falkor Build Status github Falkor/dotfiles issues Documentation Status

    Time-stamp: <Wed 2016-03-02 00:49 svarrette>

     ______    _ _             _       _____        _    __ _ _
    |  ____|  | | |           ( )     |  __ \      | |  / _(_) |
    | |__ __ _| | | _____  _ __/ ___  | |  | | ___ | |_| |_ _| | ___ ___
    |  __/ _` | | |/ / _ \| '__|/ __| | |  | |/ _ \| __|  _| | |/ _ \ __|
    | | | (_| | |   < (_) | |   \__ \ | |__| | (_) | |_| | | | |  __\__ \
    |_|  \__,_|_|_|\_\___/|_|   |___/ |_____/ \___/ \__|_| |_|_|\___|___/


   Copyright (c) 2011-2016 Sebastien Varrette aka Falkor <[email protected]>

Sebastien Varrette aka Falkor's dotfiles

These are my configuration files for bash, zsh, git, vim etc. so as to set up a system the way I like it. For instance, here is a screenshot of my terminal illustrating its behaviour on classical contexts commonly met on a daily usage of interactions with git repositories etc.

Warning: Use these dotfiles at your own risk!

In the sequel, when providing a command, $> denotes a prompt and is not part of the commands.

Pre-requisites

You should install the following elements to use the full functionality of these config files:

  • bash
  • bash-completions
  • zsh
  • zsh-completions
  • screen
  • git
  • subversion
  • vim
  • screen

On Mac OS, assuming you have installed HomeBrew (you really should), you can use brew/Brewfile.minimal to install these dependencies as follows:

# Install brew bundle -- see https://github.com/Homebrew/homebrew-bundle
$> brew tap Homebrew/bundle
# Collect the Brewfile
$> curl -o /tmp/Brewfile https://raw.githubusercontent.com/Falkor/dotfiles/master/brew/Brewfile.minimal
# Install Falkor's dotfile dependencies
$> brew bundle --file=/tmp/Brewfile -v

On Linux:

# Debian / Ubuntu
$> sudo apt-get install git git-flow bash-completion screen curl subversion zsh fonts-font-awesome

Falkor's dotfiles Installation

All-in-one git-free install

Using curl (adapt the --all option to whatever you prefer -- see below table):

$> curl -fsSL https://raw.githubusercontent.com/Falkor/dotfiles/master/install.sh | bash -s -- --all

Using Git and the embedded Makefile

This repository is hosted on Github. You can clone the repository wherever you want. Personally, I like to keep it in ~/git/github.com/Falkor/dotfiles, with ~/.dotfiles.falkor.d as a symlink. This behaviour will be reflected in the install.sh script i.e. if it is invoked from a directory that differs from ~/.dotfiles.falkor.d, a symlink will be created toward the place where your cloned this repository.

Otherwise, to clone this repository directly into ~/.dotfiles.falkor.d/, proceed as follows

    $> git clone https://github.com/Falkor/dotfiles.git ~/.dotfiles.falkor.d

/!\ IMPORTANT: Once cloned, initiate your local copy of the repository by running:

    $> cd ~/.dotfiles.falkor.d
    $> make setup

This will initiate the Git submodules of this repository and setup the git flow layout for this repository.

Now to install all my dotfiles, run:

    $> make install

Using Git and the embedded install.sh script

The above make install command actually runs (see .Makefile.after):

     $> ./install.sh --all   # Equivalent of 'make install'

Note that by default (i.e. without option), the install.sh script does nothing except cloning the Falkor/dotfiles directory if it does not yet exists (in ~/.dotfiles.falkor.d by default).

  • if you do not want to install everything but only a subpart, kindly refer to the below table to find the proper command-line argument to use. Ex:
         $> ./install.sh --zsh --vim --git
  • if you want to install everything in a row, use as suggested above the --all option

Updating / Upgrading

Upgrading is normally as simple as:

 $> make -C ~/.config/dotfiles.falkor.d update

OR, if you prefer a more atomic approach:

 $> cd ~/.config/dotfiles.falkor.d
 $> make update

Note that if you wish to upgrade the Git submodules to the latest version, you should run:

 $> make upgrade

Uninstalling / Removing Falkor's dotfile

You can use install.sh --delete to remove Falkor's dotfiles.

/!\ IMPORTANT: pay attention to use the options matching you installation package.

  • if you install all dotfiles, run:
     $> ./install.sh --delete --all     # OR make uninstall
  • if you install only a subpart of the dotfiles, adapt the command line option. Ex:
     $> ./install.sh --delete --zsh --vim --git

What's included and how to customize?

Tools Type Installation Documentation
Bourne-Again shell (bash) shell ./install.sh --bash bash/README.md
zsh / Oh-my-zsh shell ./install.sh --zsh oh-my-zsh/README.md
VI iMproved (vim) editor ./install.sh --vim vim/README.md
GNU Emacs editor ./install.sh --emacs emacs/README.md
Git --fast-version-control VCS ./install.sh --git git/README.md
GNU screen terminal multiplexers ./install.sh --screen screen/README.md

As mentioned above, if you want to install all dotfiles in one shot, just use

  $> ./install.sh --all      # OR 'make install'

Issues / Feature request

You can submit bug / issues / feature request using the Falkor/dotfiles Project Tracker

Developments / Contributing to the code

If you want to contribute to the code, you shall be aware of the way this repository is organized and developed. These elements are detailed on docs/contributing/

Licence

This project is released under the terms of the GPL-3.0 licence.

Licence

Resources

You can find of course many other resources in terms dotfiles repositories. I suggest you to take a look at the following places I inspired:

dotfiles's People

Contributors

falkor avatar hcartiaux avatar svarrette-anssi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles's Issues

Installing the "Bundle"

So, below, it did not run because I had not gone to the App Store and downloaded Xcode from there (though I already had the command line ones installed, apparently).

After that, and restarting the shell, I issued it again and (good news):

 Homebrew Bundle complete! 34 Brewfile dependencies now installed.

\\\\\\\\\\

I re-ran the commands and got this far:

Installing sublime-text
Installing Xcode app. It is not currently installed.
No downloads
Error: No downloads began
Installing Xcode has failed!
Installing font-source-code-pro-for-powerline cask. It is not currently installed.
==> Cloning https://github.com/powerline/fonts/trunk/SourceCodePro
Warning: No checksum defined for cask 'font-source-code-pro-for-powerline', skipping verification.
==> Installing Cask font-source-code-pro-for-powerline
==> Moving Font 'Source Code Pro for Powerline.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro for Powerline.otf'
==> Moving Font 'Source Code Pro Bold for Powerline.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Bold for Powerline.otf'
==> Moving Font 'Source Code Pro ExtraLight for Powerline.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro ExtraLight for Powerline.otf'
==> Moving Font 'Source Code Pro Light for Powerline.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Light for Powerline.otf'
==> Moving Font 'Source Code Pro Medium for Powerline.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Medium for Powerline.otf'
==> Moving Font 'Source Code Pro Powerline BlackItalic.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Powerline BlackItalic.otf'
==> Moving Font 'Source Code Pro Powerline BoldItalic.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Powerline BoldItalic.otf'
==> Moving Font 'Source Code Pro Powerline ExtraLightItalic.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Powerline ExtraLightItalic.otf'
==> Moving Font 'Source Code Pro Powerline Italic.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Powerline Italic.otf'
==> Moving Font 'Source Code Pro Powerline LightItalic.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Powerline LightItalic.otf'
==> Moving Font 'Source Code Pro Powerline MediumItalic.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Powerline MediumItalic.otf'
==> Moving Font 'Source Code Pro Powerline SemiboldItalic.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Powerline SemiboldItalic.otf'
==> Moving Font 'Source Code Pro Semibold for Powerline.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Semibold for Powerline.otf'
==> Moving Font 'Source Code Pro Black for Powerline.otf' to '/Users/karldschubert/Library/Fonts/Source Code Pro Black for Powerline.otf'
🍺 font-source-code-pro-for-powerline was successfully installed!
Installing font-source-code-pro-for-powerline
Using font-hack-nerd-font
Homebrew Bundle failed! 1 Brewfile dependency failed to install.

/users/xyz/.oh-my-zsh/themes master* 11m 23s

I looked back and this appears to be the problem:

image

I re-ran and got to here:

❯ brew bundle --file=/tmp/Brewfile -v
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 8 formulae.
==> Updated Casks
Updated 2 casks.

Skipping install of buo/cask-upgrade tap. It is already installed.
Using buo/cask-upgrade
Skipping install of d12frosted/emacs-plus tap. It is already installed.
Using d12frosted/emacs-plus
Skipping install of homebrew/bundle tap. It is already installed.
Using homebrew/bundle
Skipping install of homebrew/cask tap. It is already installed.
Using homebrew/cask
Skipping install of homebrew/cask-fonts tap. It is already installed.
Using homebrew/cask-fonts
Skipping install of homebrew/cask-versions tap. It is already installed.
Using homebrew/cask-versions
Skipping install of homebrew/core tap. It is already installed.
Using homebrew/core
Skipping install of homebrew/services tap. It is already installed.
Using homebrew/services
Skipping install of romkatv/powerlevel10k tap. It is already installed.
Using romkatv/powerlevel10k
Skipping install of readline formula. It is already up-to-date.
Using readline
Skipping install of bash formula. It is already up-to-date.
Using bash
Skipping install of bash-completion formula. It is already up-to-date.
Using bash-completion
Skipping install of coreutils formula. It is already up-to-date.
Using coreutils
Skipping install of curl formula. It is already up-to-date.
Using curl
Skipping install of git formula. It is already up-to-date.
Using git
Skipping install of git-extras formula. It is already up-to-date.
Using git-extras
Skipping install of git-flow-avh formula. It is already up-to-date.
Using git-flow-avh
Skipping install of mas formula. It is already up-to-date.
Using mas
Skipping install of powerlevel10k formula. It is already up-to-date.
Using romkatv/powerlevel10k/powerlevel10k
Skipping install of subversion formula. It is already up-to-date.
Using subversion
Skipping install of terminal-notifier formula. It is already up-to-date.
Using terminal-notifier
Skipping install of tig formula. It is already up-to-date.
Using tig
Skipping install of vim formula. It is already up-to-date.
Using vim
Skipping install of wget formula. It is already up-to-date.
Using wget
Skipping install of bash-completion formula. It is already up-to-date.
Using bash-completion
Skipping install of brew-cask-completion formula. It is already up-to-date.
Using brew-cask-completion
Skipping install of zsh-completions formula. It is already up-to-date.
Using zsh-completions
Using atom
Skipping install of emacs-plus@27 formula. It is already up-to-date.
Using d12frosted/emacs-plus/emacs-plus@27
Using iterm2
Using sublime-text
Installing Xcode app. It is not currently installed.
^C

/users/xyz/.oh-my-zsh/themes master* 1m 37s

Thank you, again, for your help!

CHanging Theme to dark

Hi there, other than the documentation is there another way for me to study your dotfiles? I really like the way it is structured but I can't seem to wrap my head around it. Some help regarding modifying vim theme would very helpful. I tried changing the theme from light to dark but it still remained light. if you could can you please email me the explanation at [email protected]? Thanks in advance

Error: Invalid Brewfile: undefined method `mac' for #<Bundle::Dsl:0x00007ff824a8d490>

Hello! I was following the direction in the ReadMe and got to the point of:

 brew bundle --file=/tmp/Brewfile -v

And got this error code:

 Error: Invalid Brewfile: undefined method `mac' for #<Bundle::Dsl:0x00007ff824a8d490>

Everything else beforehand looked like it ran successfully:

brew tap Homebrew/bundle
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
crispy-doom [email protected] projectm rdkit
==> Updated Formulae
Updated 497 formulae.
==> Deleted Formulae
avian geant4
==> New Casks
cog nault wannianli
font-smoothing-adjuster redream zecwallet-lite
kyokan-bob rhino zulufx
megax the-archive
==> Updated Casks
Updated 173 casks.
==> Deleted Casks
kode54-cog protonmail-unofficial
mega rhinoceros

==> Tapping homebrew/bundle
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 5839 (delta 0), reused 0 (delta 0), pack-reused 5835
Receiving objects: 100% (5839/5839), 1.33 MiB | 8.72 MiB/s, done.
Resolving deltas: 100% (3423/3423), done.
Tapped 1 command (109 files, 1.7MB).
➜ ~ curl -o /tmp/Brewfile https://raw.githubusercontent.com/Falkor/dotfiles/master/brew/Brewfile.minimal
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1014 100 1014 0 0 5393 0 --:--:-- --:--:-- --:--:-- 5393

I am on a Mac:

image

I am doing this in preparation to installing Powerlevel10k following the directions here:

 https://medium.com/weekly-webtips/my-terminal-setu-iterm2-zsh-powerlevel10k-f7101ffc72c2

Thank you for your help!

Sincerely,

Karl.

[ERROR] Unable to find the dotfile '/home/ubuntu//.config/bash/.bashrc'

My OS is Ubuntu(18.04.6 LTS) therefore I used your instructions as follows :

git clone https://github.com/Falkor/dotfiles.git ~/.dotfiles.falkor.d

Once cloned, initiated my local copy of the repository by running:

cd ~/.dotfiles.falkor.d
make setup
make install

I then received this error message :

[ERROR] Unable to find the dotfile '/home/ubuntu//.config/bash/.bashrc'
(interpreted path: ''). 'install.sh -h' for help.
.Makefile.after:17: recipe for target 'install' failed
make: *** [install] Error 1```

How can I delete rvm status when unecessary?

Hi, I see your screenshot, it seems that since you run 'rvm use 2.1' then it shows rvm status on the right prompt, befor that it don't have that. How can you do that? I use rvm and powerlevel9k too, but I have rvm status on my right prompt all the time, how can I delete it when unnecessary?

Wont download

The font wont download... getting a 403 bad request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.