Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: ports/devenv/bashrc

Issue 1071783003: Add root certificate bundle to curl package, and improve git default setup. (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This is for bash on NaCl. Note that you cannot use external commands 6 # This is for bash on NaCl. Note that you cannot use external commands
7 # until the installation is completed. Also, you cannot use features 7 # until the installation is completed. Also, you cannot use features
8 # which nacl_io does not support yet (e.g., pipes and sub-shells). 8 # which nacl_io does not support yet (e.g., pipes and sub-shells).
9 9
10 # Setup environment once to get location of fixed things like coreutils. 10 # Setup environment once to get location of fixed things like coreutils.
11 source /mnt/http/setup-environment 11 source /mnt/http/setup-environment
12 12
13 /mnt/http/install-base-packages.sh 13 /mnt/http/install-base-packages.sh
14 14
15 # Setup default .gitconfig if it doesn't already exist.
Sam Clegg 2015/04/08 23:34:59 A bit more info here about why its needed and a TO
bradn 2015/04/09 00:07:21 Done.
16 if [ ! -e /home/user/.gitconfig ]; then
17 git config --global init.templatedir ""
18 git config --global user.name "John Doe"
19 git config --global user.email "john.doe@foo.com"
20 fi
21
15 # Setup environment again, to rescan the packages added. 22 # Setup environment again, to rescan the packages added.
16 source /mnt/http/setup-environment 23 source /mnt/http/setup-environment
17 24
18 cd ${HOME} 25 cd ${HOME}
19 26
20 if [ -e ${HOME}/.bashrc ]; then 27 if [ -e ${HOME}/.bashrc ]; then
21 source ${HOME}/.bashrc 28 source ${HOME}/.bashrc
22 fi 29 fi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698