├── .bash_aliases ├── .bashrc ├── .profile ├── .vimrc └── README.md /.bash_aliases: -------------------------------------------------------------------------------- 1 | alias ls="ls -lisah --color=auto" 2 | alias composer="/usr/local/php55/bin/php /composer.phar" 3 | -------------------------------------------------------------------------------- /.bashrc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Create a fancy prompt 4 | function farbige_shell 5 | { 6 | local GRAY="\[\033[1;30m\]" 7 | local LIGHT_GRAY="\[\033[0;37m\]" 8 | local CYAN="\[\033[0;36m\]" 9 | local LIGHT_CYAN="\[\033[1;36m\]" 10 | local NO_COLOUR="\[\033[0m\]" 11 | local BLUE="\[\033[0;34m\]" 12 | local LIGHT_BLUE="\[\033[1;34m\]" 13 | local RED="\[\033[0;31m\]" 14 | local LIGHT_RED="\[\033[1;31m\]" 15 | local GREEN="\[\033[1;32m\]" 16 | local LIGHT_GREEN="\[\033[1;32m\]" 17 | local PURPLE="\[\033[0;35m\]" 18 | local LIGHT_PURPLE="\[\033[1;35m\]" 19 | local BROWN="\[\033[0;33m\]" 20 | local YELLOW="\[\033[1;33m\]" 21 | local BLACK="\[\033[0;30m\]" 22 | local WHITE="\[\033[1;37m\]" 23 | 24 | PS1="\n$GREEN<$CYAN\u$GREEN> $GREEN[$CYAN\W$GREEN] $NO_COLOUR" 25 | 26 | } 27 | farbige_shell 28 | 29 | # Create user binary folder 30 | if [ ! -d ~/bin ]; then 31 | mkdir ~/bin 32 | fi 33 | 34 | # Extend PATH 35 | export PATH="$PATH:~/bin/" 36 | 37 | # Create symlink to httpdocs 38 | if [ ! -h ~/html ]; then 39 | ln -s /httpdocs html 40 | fi 41 | 42 | # Load aliases 43 | if [ -f ~/.bash_aliases ]; then 44 | . ~/.bash_aliases 45 | fi 46 | 47 | -------------------------------------------------------------------------------- /.profile: -------------------------------------------------------------------------------- 1 | # Hack home 2 | export HOME="/home/" 3 | 4 | # Switch to hacked home folder 5 | cd 6 | 7 | # Execute .bashrc 8 | if [ "$PS1" ]; then 9 | if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then 10 | if [ -f ~/.bashrc ]; then 11 | . ~/.bashrc 12 | fi 13 | else 14 | if [ "`id -u`" -eq 0 ]; then 15 | PS1='# ' 16 | else 17 | PS1='$ ' 18 | fi 19 | fi 20 | fi 21 | -------------------------------------------------------------------------------- /.vimrc: -------------------------------------------------------------------------------- 1 | version 6.0 2 | if &cp | set nocp | endif 3 | let s:cpo_save=&cpo 4 | set cpo&vim 5 | nmap gx NetrwBrowseX 6 | nnoremap NetrwBrowseX :call netrw#NetrwBrowseX(expand("^V"),0)^V^M 7 | let &cpo=s:cpo_save 8 | unlet s:cpo_save 9 | "syntax on 10 | set background=dark 11 | set backspace=indent,eol,start 12 | set fileencodings=ucs-bom,utf-8,default,latin1 13 | set helplang=en 14 | set history=50 15 | set nomodeline 16 | set printoptions=paper:letter 17 | set ruler 18 | set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after 19 | set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc 20 | " vim: set ft=vim : 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | I'm try to make the ssh jail shell of paralels cloud server better. 2 | 3 | Install 4 | ------- 5 | 6 | * Create `/home` in jail 7 | * Save all files to `/home` 8 | * Make .profile and .bashrc executable (chmod a+x ...) 9 | * Create symlink for profile: `ln -s /home/.profile /.profile` 10 | * Logout 11 | * Login 12 | 13 | Features 14 | -------- 15 | 16 | * Fancy bash prompt 17 | * Fake home directory for all config files (manipulates $HOME) 18 | * Default vim configuration 19 | * .bash_aliases for user defined aliases 20 | * ~/bin/ folder for user defined scripts/binaries in $PATH 21 | * ~/html/ symlink to /httpdocs/ 22 | 23 | More ideas? Feel free to make a pull request! 24 | --------------------------------------------------------------------------------