Zum Inhalt springen

Bash bei metanet vorbereiten

Aus Computech CMS Wiki

mit SSH einloggen:

ssh aarebau@80.74.147.33 -p 2121

Bash vorbereiten

nano .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
nano .bashrc
# .bashrc
alias drush='~/.drush/drush'

PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]' #color fuer die shell

Drush installieren

mkdir ~/.drush
cd .drush
php -r "readfile('https://s3.amazonaws.com/files.drush.org/drush.phar');" > drush
chmod +x drush