What this is

This is a Git repo of my personal shell profile and preferred working environment. You are free to use it if you think / work like me.

What does this do?

  • works with the package manager to install my preferred tools
  • use zsh by default
  • enables oh-my-zsh with gentoo colors and the following plugins / settings
    • git
    • per-directory-history
    • zsh-autosuggestions
    • zsh-syntax-highlighting
    • interactive comments
    • RM_STAR_WAIT - wait 10 seconds before agreeing to rm *
    • effectively unlimited history
  • use phpenv, rbenv, pyenv, etc if installed
  • vim as default editor with the following plugins / settings
    • vim-fugitive
    • vim-sleuth
    • Vundle
    • ignorecase / smartcase search
    • _ character counted as iskeyword
  • all of the above with automation conveniences
    • installer script, so i can run on any new PC / VM
    • backs up current configs
    • allows you to set local configs tracked separately from git

Installing

Quick Install

curl https://gitea.madumlao.com/madumlao/madumlao-profile/raw/branch/master/install.sh | bash

Manual Install

Copy this directory somewhere in your home directory. The directory should be persistent, so probably keep this in your "projects" directory or somewhere similar. If in doubt, you can keep this under .local/share/madumlao-profile.

Next, run the install.sh script. It should backup your existing profile and replace it with symlinks to this version.

madumlao@lenneth ~/Projects/madumlao-profile $ ./install.sh 
Backing up original profile under /home/madumlao/Projects/madumlao-profile/backup
'/home/madumlao/.bash_profile' -> '/home/madumlao/Projects/madumlao-profile/backup/.bash_profile'
'/home/madumlao/.bash_profile' -> 'Projects/madumlao-profile/skel/.bash_profile'
'/home/madumlao/.bashrc' -> '/home/madumlao/Projects/madumlao-profile/backup/.bashrc'
'/home/madumlao/.bashrc' -> 'Projects/madumlao-profile/skel/.bashrc'
'/home/madumlao/.profile' -> '/home/madumlao/Projects/madumlao-profile/backup/.profile'
'/home/madumlao/.profile' -> 'Projects/madumlao-profile/skel/.profile'
'/home/madumlao/.vimrc' -> '/home/madumlao/Projects/madumlao-profile/backup/.vimrc'
'/home/madumlao/.vimrc' -> 'Projects/madumlao-profile/skel/.vimrc'
'/home/madumlao/.zprofile' -> '/home/madumlao/Projects/madumlao-profile/backup/.zprofile'
'/home/madumlao/.zprofile' -> 'Projects/madumlao-profile/skel/.zprofile'
'/home/madumlao/.zshrc' -> '/home/madumlao/Projects/madumlao-profile/backup/.zshrc'
'/home/madumlao/.zshrc' -> 'Projects/madumlao-profile/skel/.zshrc'

You can add custom variables on the current user by editing .profile-local.

You can put passwords, keys, etc in .profile-private.

Both files are force git-ignored. No other special protections are made to them.

Description
No description provided
Readme 96 KiB
Languages
Shell 100%