質問編集履歴

1

~/.bashrc 全文です

2018/04/04 04:13

投稿

pontem
pontem

スコア8

test CHANGED
File without changes
test CHANGED
@@ -45,3 +45,251 @@
45
45
  端末のエラーメッセージでは121行目となっていますがパスを書いた行は118と119行目で121行めには何もありません。
46
46
 
47
47
  どなたかわかる方よろしくお願いします。
48
+
49
+
50
+
51
+ ### ~/.bashrc 全文
52
+
53
+ ```
54
+
55
+ #!/bin/bash ~/.bashrc: executed by bash(1) for non-login shells.
56
+
57
+ # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
58
+
59
+ # for examples
60
+
61
+
62
+
63
+ # If not running interactively, don't do anything
64
+
65
+ case $- in
66
+
67
+ *i*) ;;
68
+
69
+ *) return;;
70
+
71
+ esac
72
+
73
+
74
+
75
+ # don't put duplicate lines or lines starting with space in the history.
76
+
77
+ # See bash(1) for more options
78
+
79
+ HISTCONTROL=ignoreboth
80
+
81
+
82
+
83
+ # append to the history file, don't overwrite it
84
+
85
+ shopt -s histappend
86
+
87
+
88
+
89
+ # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
90
+
91
+ HISTSIZE=1000
92
+
93
+ HISTFILESIZE=2000
94
+
95
+
96
+
97
+ # check the window size after each command and, if necessary,
98
+
99
+ # update the values of LINES and COLUMNS.
100
+
101
+ shopt -s checkwinsize
102
+
103
+
104
+
105
+ # If set, the pattern "**" used in a pathname expansion context will
106
+
107
+ # match all files and zero or more directories and subdirectories.
108
+
109
+ #shopt -s globstar
110
+
111
+
112
+
113
+ # make less more friendly for non-text input files, see lesspipe(1)
114
+
115
+ [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
116
+
117
+
118
+
119
+ # set variable identifying the chroot you work in (used in the prompt below)
120
+
121
+ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
122
+
123
+ debian_chroot=$(cat /etc/debian_chroot)
124
+
125
+ fi
126
+
127
+
128
+
129
+ # set a fancy prompt (non-color, unless we know we "want" color)
130
+
131
+ case "$TERM" in
132
+
133
+ xterm-color|*-256color) color_prompt=yes;;
134
+
135
+ esac
136
+
137
+
138
+
139
+ # uncomment for a colored prompt, if the terminal has the capability; turned
140
+
141
+ # off by default to not distract the user: the focus in a terminal window
142
+
143
+ # should be on the output of commands, not on the prompt
144
+
145
+ #force_color_prompt=yes
146
+
147
+
148
+
149
+ if [ -n "$force_color_prompt" ]; then
150
+
151
+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
152
+
153
+ # We have color support; assume it's compliant with Ecma-48
154
+
155
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
156
+
157
+ # a case would tend to support setf rather than setaf.)
158
+
159
+ color_prompt=yes
160
+
161
+ else
162
+
163
+ color_prompt=
164
+
165
+ fi
166
+
167
+ fi
168
+
169
+
170
+
171
+ if [ "$color_prompt" = yes ]; then
172
+
173
+ PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]$ '
174
+
175
+ else
176
+
177
+ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$ '
178
+
179
+ fi
180
+
181
+ unset color_prompt force_color_prompt
182
+
183
+
184
+
185
+ # If this is an xterm set the title to user@host:dir
186
+
187
+ case "$TERM" in
188
+
189
+ xterm*|rxvt*)
190
+
191
+ PS1="[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a]$PS1"
192
+
193
+ ;;
194
+
195
+ *)
196
+
197
+ ;;
198
+
199
+ esac
200
+
201
+
202
+
203
+ # enable color support of ls and also add handy aliases
204
+
205
+ if [ -x /usr/bin/dircolors ]; then
206
+
207
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
208
+
209
+ alias ls='ls --color=auto'
210
+
211
+ #alias dir='dir --color=auto'
212
+
213
+ #alias vdir='vdir --color=auto'
214
+
215
+
216
+
217
+ alias grep='grep --color=auto'
218
+
219
+ alias fgrep='fgrep --color=auto'
220
+
221
+ alias egrep='egrep --color=auto'
222
+
223
+ fi
224
+
225
+
226
+
227
+ # colored GCC warnings and errors
228
+
229
+ #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
230
+
231
+
232
+
233
+ # some more ls aliases
234
+
235
+ alias ll='ls -alF'
236
+
237
+ alias la='ls -A'
238
+
239
+ alias l='ls -CF'
240
+
241
+
242
+
243
+ # Add an "alert" alias for long running commands. Use like so:
244
+
245
+ # sleep 10; alert
246
+
247
+ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]+\s*//;s/[;&|]\s*alert$//'\'')"'
248
+
249
+
250
+
251
+ # Alias definitions.
252
+
253
+ # You may want to put all your additions into a separate file like
254
+
255
+ # ~/.bash_aliases, instead of adding them here directly.
256
+
257
+ # See /usr/share/doc/bash-doc/examples in the bash-doc package.
258
+
259
+
260
+
261
+ if [ -f ~/.bash_aliases ]; then
262
+
263
+ . ~/.bash_aliases
264
+
265
+ fi
266
+
267
+
268
+
269
+ # enable programmable completion features (you don't need to enable
270
+
271
+ # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
272
+
273
+ # sources /etc/bash.bashrc).
274
+
275
+ if ! shopt -oq posix; then
276
+
277
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
278
+
279
+ . /usr/share/bash-completion/bash_completion
280
+
281
+ elif [ -f /etc/bash_completion ]; then
282
+
283
+ . /etc/bash_completion
284
+
285
+ fi
286
+
287
+ export PATH="/usr/local/cuda/bin:$PATH"
288
+
289
+ export LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
290
+
291
+
292
+
293
+
294
+
295
+ ```