GithubHelp home page GithubHelp logo

ornoone / custom.rc Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 139 KB

all my personal .rc files.

License: GNU General Public License v3.0

Shell 34.92% C 0.03% Python 0.04% HTML 0.12% Vim Script 64.89%

custom.rc's Introduction

custom.rc

all my personal .rc files.

  • use oh-my-zsh: apt-get install -y zsh git curl zsh-syntax-highlighting && sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

  • use theme agnoster

  • use plugins : git debian docker systemd python common-aliases dirhistory pip npm django

  • set custom aliases :

    • workon. : enable a virtualenv matching current dir
    • generepasswd : use apg to create a 8 char long secure/spellable password
  • custom vim config with powerline and many small features

easy unpack :

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
curl -L  https://api.github.com/repos/ornoone/custom.rc/tarball | tar  xvz --strip-components=1  --exclude='LICENSE' --exclude='README.md'
ln -s .zshrc.theme.d/V1rgul.zsh .zshrc.theme
pip3 install powerline-status --break-system-packages
sudo apt-get install vim-nox

further customisation for servers

instal requirements:

pip3 install powerline-status
apt-get install linuxlogo lolcat figlet 

cat << 'EOF' > /etc/rc.local 
#!/bin/sh
linuxlogo > /etc/motd

printShinySeeded() {

  local seed=$( echo $1 | python3 -c 'import sys, functools; print(functools.reduce(lambda a, b: a+b, (ord(l) for l in sys.stdin.read())))')
  figlet -w 119 $1 | /usr/games/lolcat -f -S ${seed}
}
printShinySeeded $(hostname) >>  /etc/motd
exit 0
EOF

snipets

sudoers: to keep your home when you do sudo -s, so multiple user can keep their history and rc's while root

Defaults        env_keep= "HOME EDITOR"

add ZSH_DISABLE_COMPFIX=true to .zshrc

custom.rc's People

Contributors

ornoone avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.