Skip to content
No description, website, or topics provided.
Python Shell Lua Vim script Perl HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
albert
ash
backups
bash
conky
firefox-addons
fonts
gimp
git
i3
irssi-scripts
monitoring
mutt
ncmpcpp/.ncmpcpp
newsboat
nfs
nvidia
pass
powerline
pycharm/config
ranger
scim
scripts
tmux
todo
touchpad
vifm
vim
zsh
.gitignore
README.md
__init__.py
fabfile.py
installers.py
nodes.py

README.md

env-configs

This repo covers

  • Albert
  • Pycharm 2017
  • zsh
  • vimf
  • bash
  • git
  • tmux

Using the configuration

0. Choose any dir e.g: ~/diy/env-configs

mkdir $HOME/diy

1. clone this whole repo:

git clone git@github.com:megamorphf/env-configs.git $HOME/diy/env-configs

2. create symlinks to your conf files

confpath="$HOME/diy/env-configs"

# vim
cd $HOME && ln -s ./diy/env-configs/vim/hidden.vim .vim
cd $HOME && ln -s ./diy/env-configs/vim/basic.vimrc .vimrc

# gvim
cd $confpath/vim/ && ln -s ./vimrc-mac ./gvimrc
cd $HOME ln -s $confpath/vim/.gvimrc .gvimrc

# vifm, OS X
cd $HOME/.config && ln -s ../diy/env-configs/vifm/ vifm

# vifm, Debian
cd $HOME && ln -s ./diy/env-configs/vifm/ vifm

# zsh
cd $HOME && ln -s ./diy/env-configs/zsh/.zshrc .zshrc

# git
cd $HOME && ln -s ./diy/env-configs/git/.gitignore_global .gitignore_global
cd $HOME && ln -s ./diy/env-configs/git/.gitconfig .gitconfig

# tmux
cd $HOME && ln -s ./diy/env-configs/tmux/hidden.tmux.conf .tmux.conf
# Optional inputrc
ln -s ./diy/env-configs/zsh/hidden.inputrc .inputrc

# ncmpcpp
mv ~/.ncmpcpp ~/.ncmpcpp.bak
ln -s $HOME/diy/env-configs/ncmpcpp/.ncmpcpp $HOME/.ncmpcpp

# mopidy
mkdir  $HOME/diy/env-configs/mopidy
cp -r $HOME/.config/mopidy $HOME/diy/env-configs/mopidy
mv $HOME/.config/mopidy $HOME/.config/mopidy.bak
ln -s $HOME/diy/env-configs/mopidy/mopidy $HOME/.config/mopidy


# i3
mkdir  $HOME/diy/env-configs/i3
cp -r $HOME/.config/i3/* $HOME/diy/env-configs/i3
mv $HOME/.config/i3 $HOME/.config/i3.bak
ln -s $HOME/diy/env-configs/i3 $HOME/.config/i3

x. (optional) export $PATH variable for the scripts folder

# for bash
echo "export PATH=$HOME/diy/env-configs/scripts:$PATH" >> $HOME/.bashrc


# link `.bashrc`
cp $HOME/.bashrc $HOME/diy/env-configs/bash/main.bashrc
mv $HOME/.bashrc $HOME/.bashrc.bak
ln -s $HOME/diy/env-configs/bash/main.bashrc $HOME/.bashrc


# link `.bash_aliases`
cp $HOME/.bash_aliases $HOME/diy/env-configs/bash/$USER@$HOSTNAME.bash_aliases
mv $HOME/.bash_aliases $HOME/.bash_aliases.bak
ln -s $HOME/diy/env-configs/bash/main.bash_aliases $HOME/.bash_aliases
ls -alh .bash_aliases


# link `.bash_funcs`
ln -s $HOME/diy/env-configs/bash/main.bash_funcs $HOME/.bash_funcs  


# link `.bash_profile`
mv $HOME/.bash_profile $HOME/.bash_profile.bak
ln -s $HOME/diy/env-configs/bash/main.bash_profile $HOME/.bash_profile


# for zsh
echo "export PATH=$HOME/diy/env-configs/scripts:$PATH" >> $HOME/.bashrc
You can’t perform that action at this time.