Skip to content

my Zsh / Oh-My-Zsh/ Vim/ Tmux / iTerm dotfiles config ⚡

License

Notifications You must be signed in to change notification settings

rserranon/dotfiles_old

 
 

Repository files navigation

Dotfiles for Bitcoin Core development ₿

screenshot Here's what my setup looks like.

A dotfiles repository is a way to manage all your environment configuration in github, to be able to replicate it easily on any other computer, in my case OSx (Linux is possible too). It basically works by defining a series of files with the extension .symlink, they can be defined in different sub-directories, that an install shell copies to the user root directory as hidden dot (.) files. For example, the vim editor configuration can be review in /vim/vimrc.symlink.

I also use TMUX, tmux is an open-source terminal multiplexer for Unix-like operating systems. It allows multiple terminal sessions to be accessed simultaneously in a single window. You can review TMUX configuration in tmux/tmux.conf.symlink

Current configurations in this dotfiles:

  • git
  • vim
  • lldb (c++ debugger)
  • pdbrc (python debugger)
  • tmux
  • zsh
  • vim
  • iirc

In this configuration I'm also using a slight modified version of the agnoster theme of oh-my-zsh, it shows the last 2 segments of the path and a Bitcoin ₿. prompmt, the custom theme is: custom-themes-path/agnoster.zsh-theme and has to be copied, after oh-my-zsh is installed, on the path ~/.oh-my-zsh/custom/themes.

[TOC]

Installation:

Clone this repository (or your own fork!) to your home directory (/Users/username) under a hidden .dotfiles directory.

Then cd to the .dotfiles directory and run the installer:

> git clone https://github.com/rserranon/dotfiles ~/.dotfiles
> cd ~/.dotfiles
> ./install

Start TMUX

> TMUX

Required tools:

iterm2

On OS X Use iterm2 instead of Terminal: http://iterm2.com/

fonts

Ubuntu Mono Derivative Powerline Font

  1. download the font archive, and unzip it. Go to fonts-master/UbuntuMono/ and install each of the four TTFs: simply double-click and let Font Book install them for you.
  2. Open iTerm, then navigate to Terminal Preferences > Profiles > Font and click the Change button.
  3. Select Ubuntu Mono derivative Powerline and set the font size you want.
  4. Close preferences, and quit iTerm.

Fonts for vim-devicons

brew tap homebrew/cask-fonts
brew install font-hack-nerd-font

** Note: Change font in i-Term to Hack Nerdfont

oh-my-zsh

link to install oh-my-zsh

install oh-my-zsh Plugings: autosuggestions and syntax-highlighting

$ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

gpg

brew install gpg2

export public and private key:

> pgp --export -a -o RSN_Key.ask <key_id>
> gpg --export-secret-keys --armor [email protected]
> gpg --import ~/.ssh/RSN_key.asc

Tmux

OS X:

> brew install Tmux 

Node version manager

> brew install nvm
> nvm install node
> nvm install <version> # I used 18

Optional tools

This are several tools that make the development workflow more agile, I strongly recommend to install them and learn how to use them.

Git-delta

A syntax-highlighting pager for git, diff, and grep output

Installation and configuration manual

> brew install git-delta

<<<<<<< HEAD

fzf fuzzy finder

fzf is a general-purpose command-line fuzzy finder. It's an interactive Unix filter for command-line that can be used with any list; files, command history, processes, hostnames, bookmarks, git commits, etc. It can also be used with vim using a plugin.

Manual and usage

Installation

> brew install fzf

# To install useful key bindings and fuzzy completion:
> (brew --prefix)/opt/fzf/install

jq

jq is a lightweight and flexible command-line JSON processor.

./jq home

> brew install jq

bat

bat supports syntax highlighting for a large number of programming and markup languages:

Github

bear

Bear is a tool that generates a compilation database for clang tooling.

The JSON compilation database is used in the clang project to provide information on how a single compilation unit is processed. Thid compilation database is used by vim plugin Conquer of completion to make suggestions, intellisense like while editing the c++ code.

Github

tree

tree is a recursive directory listing command that produces a depth indented listing of files.

> brew install tree

bhex

Reverse a byte hex string: bhex

source

New to Vim?

Contributing

Did you have trouble installing this? Could I make the documentation better? Let me know @Bitcoin_1o1. Or please fork & create a pull request with your suggestions.

About

my Zsh / Oh-My-Zsh/ Vim/ Tmux / iTerm dotfiles config ⚡

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 96.3%
  • Shell 3.7%