Skip to content

Carkib/dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mathieu's dotfiles

Preview

Installation

Using Git and the bootstrap script

You can clone the repository wherever you want. The bootstrapper script will pull in the latest version and copy the files to your home folder.

git clone https://github.com/matdurand/dotfiles.git && cd dotfiles && source bootstrap.sh

To update, cd into your local dotfiles repository and then:

source bootstrap.sh

Extend this repo

You have two way to extend this repo. The first is to fork it and change it to your own liking, but after forking, it will be difficult to apply new updates that I may provide.

The second way, if you are OK with the current setup but want to apply additional configuration, is to create extension files in your home folder.

If a ~/.zshrc-before exists, it will be sourced at the beginning of the .zshrc file. If a ~/.zshrc-after exists, it will be sourced at the end of the .zshrc file.

iTerm2

If you are using iTerm2, you need to import the color theme. To do so, go to iTerm2 preferences > Profiles > Colors. In the dropdown in the bottom right corner, import and select iterm2/mathieu-iterm2-colors.itermcolors.

You also need to change the font in iTerm2 preferences > Profiles > Text. Click on change font and select Menlo for Powerline

Highlights

Here is a short list of the different plugins installed and how to use them.

Search

  • CTRL+R allows you to search in the command history Preview search history
  • CTRL+T allows you to search for a file in the current directory (or sub-directories) Preview search history

Navigation

  • bd [n] allows you to go up a number of directory. This is equivalent to doing N times cd ..
  • cd ... will show you a list of all the parent folder. If you select one, it will move you in this directory Preview cd back
  • [folder name], instead of tying cd folder you can just type the folder name to navigate into it
  • bookmark [name] will create a bookmark in the current folder
  • jump [name] will move you to the folder matching the bookmark name

Clipboard

  • copydir will copy the path of the current directory in the clipboard
  • copyfile [file] will copy the content of file into the clipboard
  • [command] | clipboard will pipe the command result into the clipboard

Git

  • k is an git enhanced version of ls
  • many aliases:
    • git addf: add individual files to the index (use TAB to select the files) Preview git addf
    • git switch: show the list of recent branches to switch to
    • git publish: push the current branch to a branch with the same name on origin
    • git fpush: like publish but as force push
    • git wip: Commit everything with a message 'WIP'
    • git undo-commit: Undo last commit
    • git nb [branch-name]: Create a branch and checkout it immediately (nb = new branch)
    • git s: status
    • git a: add
    • git co: checkout
    • git cm: commit and amend
    • git rea: abort rebase
    • git rec: continue rebase
    • git delete-merged-branches: Delete merged branches. THIS IS POTENTIALLY DANGEROUS. BRANCHES MERGED BUT WITH LATER COMMIT MIGHT BE DELETED
    • git lgp: an interactive git history using fzf, with preview Preview git lgp
  • the default diff has been replaced with diff-so-fancy, providing a better experience

Other

  • peco is like grep but with interactive filtering capabilities
  • fzf is a selection tool. You can pipe lines to it and it will allow you to select some
  • ncdu is a better version of du to find out how big is a folder and sub-folder
  • htop is a better version of top
  • bat is a better version of cat. An alias is done to use bat when typing cat
  • direnv is not a command, but an automatic process. If you enter a folder with a .envrc file, the variable in the file are automatically exposed. When you leave the folder, they are removed

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%