質問編集履歴

1

文法の修正

2018/11/23 14:01

投稿

ikt_erk122
ikt_erk122

スコア40

test CHANGED
File without changes
test CHANGED
@@ -14,4 +14,104 @@
14
14
 
15
15
  よろしくお願いいします
16
16
 
17
+ ```ここに言語を入力
18
+
19
+ # .bashrc
20
+
21
+
22
+
23
+ export PATH=$PATH:$HOME/.local/bin:$HOME/bin
24
+
25
+
26
+
27
+ # load nvm
28
+
29
+ export NVM_DIR="$HOME/.nvm"
30
+
31
+ [ "$BASH_VERSION" ] && npm() {
32
+
33
+ # hack: avoid slow npm sanity check in nvm
34
+
35
+ if [ "$*" == "config get prefix" ]; then which node | sed "s/bin/node//";
36
+
37
+ else $(which npm) "$@"; fi
38
+
39
+ }
40
+
41
+ # [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
42
+
43
+ rvm_silence_path_mismatch_check_flag=1 # prevent rvm complaints that nvm is first in PATH
44
+
45
+ unset npm # end hack
46
+
47
+
48
+
49
+
50
+
51
+ # User specific aliases and functions
52
+
53
+ alias python=python27
54
+
55
+
56
+
17
- ![イメージ説明](c2b63e562ed81a65f2bbb69ae1afb8f9.png)
57
+ # modifications needed only in interactive mode
58
+
59
+ if [ "$PS1" != "" ]; then
60
+
61
+ # Set default editor for git
62
+
63
+ git config --global core.editor /usr/bin/nano
64
+
65
+
66
+
67
+ # Turn on checkwinsize
68
+
69
+ shopt -s checkwinsize
70
+
71
+
72
+
73
+ # keep more history
74
+
75
+ shopt -s histappend
76
+
77
+ export HISTSIZE=100000
78
+
79
+ export HISTFILESIZE=100000
80
+
81
+ export PROMPT_COMMAND="history -a;"
82
+
83
+
84
+
85
+ # Source for Git PS1 function
86
+
87
+ if ! type -t __git_ps1 && [ -e "/usr/share/git-core/contrib/completion/git-prompt.sh" ]; then
88
+
89
+ . /usr/share/git-core/contrib/completion/git-prompt.sh
90
+
91
+ fi
92
+
93
+
94
+
95
+ # Cloud9 default prompt
96
+
97
+ _cloud9_prompt_user() {
98
+
99
+ if [ "$C9_USER" = root ]; then
100
+
101
+ echo "$USER"
102
+
103
+ else
104
+
105
+ echo "$C9_USER"
106
+
107
+ fi
108
+
109
+ }
110
+
111
+
112
+
113
+ PS1='[\033[01;32m]$(_cloud9_prompt_user)[\033[00m]:[\033[01;34m]\w[\033[00m]$(__git_ps1 " (%s)" 2>/dev/null) $ '
114
+
115
+ source $HOME/.profile > /dev/null
116
+
117
+ ```