{"id":19221032,"url":"https://github.com/midnighter/new-env","last_synced_at":"2025-02-23T09:26:36.640Z","repository":{"id":20157670,"uuid":"23428240","full_name":"Midnighter/new-env","owner":"Midnighter","description":"Set up a new bash/zsh environment.","archived":false,"fork":false,"pushed_at":"2018-09-12T21:11:36.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T20:15:06.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Midnighter.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.rst","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-28T13:08:29.000Z","updated_at":"2018-09-12T21:11:38.000Z","dependencies_parsed_at":"2022-07-23T15:02:08.055Z","dependency_job_id":null,"html_url":"https://github.com/Midnighter/new-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Midnighter%2Fnew-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Midnighter%2Fnew-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Midnighter%2Fnew-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Midnighter%2Fnew-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Midnighter","download_url":"https://codeload.github.com/Midnighter/new-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240295205,"owners_count":19778852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T14:39:45.048Z","updated_at":"2025-02-23T09:26:36.603Z","avatar_url":"https://github.com/Midnighter.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"====================\nNew Bash Environment\n====================\n\nStep-by-step guide to setting up a completely new bash environment to my liking.\n\nYour Bash\n---------\n\nCopy the file ``.mybashrc`` to your home directory and bind it into your\n``.bash_profile`` (to be executed on login) or ``.bashrc`` (to be executed on\nopening a terminal).\n\n.. code-block:: bash\n\n    cp .mybashrc ~/\n\n.. code-block:: bash\n\n    if [ -f ${HOME}.mybashrc ];then\n        source ${HOME}/.mybashrc\n    fi\n\nThis assumes that ``tmux``, `tmuxifier`_ are installed and that ``virtualenv`` and\n``virtualenvwrapper`` are available for Python.\n\n.. _`tmuxifier`: https://github.com/jimeh/tmuxifier\n\nPython Virtualenv\n-----------------\n\nThe file ``.mybashrc`` has the following lines in it:\n\n.. code-block:: bash\n\n    export WORKON_HOME=\"${HOME}/.virtualenvs\"\n    source virtualenvwrapper.sh\n\nChange ``WORKON_HOME`` to your desired directory. Within that directory you will\nfind a number of files. Copy the files ``postmkvirtualenv`` and ``postactivate``\ninto there overwriting the existing (empty) files.\n\npostmkvirtualenv\n~~~~~~~~~~~~~~~~\n\nWhen a new virtualenv is created, this script will first try to install updated\nversions of a few packages which I find indispensable for all Python virtualenvs,\nnamely ``setuptools``, ``pip``, ``wheel``, ``flake8``, ``virtualenv``,\n``virtualenvwrapper``. Then it will attempt to link the ``PyQt4`` system\ncomponents into the virtualenv. I find QT a pain in the neck to install and this\nis easier.\n\npostactivate\n~~~~~~~~~~~~\n\nUpon activation of a virtualenv, this script ensures that the newest commands\nfrom ``virtualenvwrapper`` installed in the virtualenv are actually used.\n\nMisc Configuration\n------------------\n\nCopy more configuration files, **first edit them to your specific needs**,\ncreating directories as necessary\n\n.. code-block:: bash\n\n    cp pip.conf ~/.pip/\n    cp .tmux.conf ~/\n    cp .gitconfig ~/\n\nColours\n-------\n\nA very nice colour scheme is Solarized_. If you look on that page or simply\nsearch for *solarized + your program*, you will most likely find something. The\ncolour schemes I like to set up are:\n\nTerminal\n~~~~~~~~\n\nOne of:\n\n* gnome-terminal_\n* xfce4-terminal_\n* KDE_\n\nAs a bonus, the KDE_ scheme also works for Kate and Kile.\n\nThen I like to setup directory colours with the following scheme_.\n\n.. _Solarized: http://ethanschoonover.com/solarized\n.. _gnome-terminal: https://github.com/Anthony25/gnome-terminal-colors-solarized\n.. _xfce4-terminal: https://github.com/sgerrand/xfce4-terminal-colors-solarized\n.. _KDE: https://github.com/hayalci/kde-colors-solarized\n.. _scheme: https://github.com/seebi/dircolors-solarized\n\nTmux\n~~~~\n\nhttps://github.com/seebi/tmux-colors-solarized\n\nSSH\n---\n\nIf you don't have one, generate an ssh key pair (private - public). You can\nfollow the `instructions on github`_.\n\n.. _`instructions on github`: https://help.github.com/articles/generating-ssh-keys\n\nVim\n---\n\nInstall one of the following plugin managers:\n\n* pathogen_\n* vundle_ (recommended for now?)\n* NeoBundle_\n\n.. code-block:: bash\n\n    git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim\n\nAdditional plugins are already set in the .vimrc but I recommend:\n\n* SrcExpl\n* taglist\n* Nerdtree\n* syntastic\n* vim-surround\n* solarized\n\nLaunch ``vim`` and run ``:PluginInstall``.\n\n.. _pathogen: https://github.com/tpope/vim-pathogen\n.. _vundle: https://github.com/gmarik/Vundle.vim\n.. _NeoBundle: https://github.com/Shougo/neobundle.vim\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidnighter%2Fnew-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidnighter%2Fnew-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidnighter%2Fnew-env/lists"}