質問編集履歴

1

.bashrcの情報の追加

2020/08/02 08:10

投稿

lupus
lupus

スコア0

test CHANGED
File without changes
test CHANGED
@@ -122,6 +122,278 @@
122
122
 
123
123
  fig.show()
124
124
 
125
+
126
+
127
+
128
+
129
+ ・bashrcの中身
130
+
131
+ .bashrcの中身
132
+
133
+ # ~/.bashrc: executed by bash(1) for non-login shells.
134
+
135
+ # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
136
+
137
+ # for examples
138
+
139
+
140
+
141
+ # If not running interactively, don't do anything
142
+
143
+ case $- in
144
+
145
+ *i*) ;;
146
+
147
+ *) return;;
148
+
149
+ esac
150
+
151
+
152
+
153
+ # don't put duplicate lines or lines starting with space in the history.
154
+
155
+ # See bash(1) for more options
156
+
157
+ HISTCONTROL=ignoreboth
158
+
159
+
160
+
161
+ # append to the history file, don't overwrite it
162
+
163
+ shopt -s histappend
164
+
165
+
166
+
167
+ # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
168
+
169
+ HISTSIZE=1000
170
+
171
+ HISTFILESIZE=2000
172
+
173
+
174
+
175
+ # check the window size after each command and, if necessary,
176
+
177
+ # update the values of LINES and COLUMNS.
178
+
179
+ shopt -s checkwinsize
180
+
181
+
182
+
183
+ # If set, the pattern "**" used in a pathname expansion context will
184
+
185
+ # match all files and zero or more directories and subdirectories.
186
+
187
+ #shopt -s globstar
188
+
189
+
190
+
191
+ # make less more friendly for non-text input files, see lesspipe(1)
192
+
193
+ [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
194
+
195
+
196
+
197
+ # set variable identifying the chroot you work in (used in the prompt below)
198
+
199
+ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
200
+
201
+ debian_chroot=$(cat /etc/debian_chroot)
202
+
203
+ fi
204
+
205
+
206
+
207
+ # set a fancy prompt (non-color, unless we know we "want" color)
208
+
209
+ case "$TERM" in
210
+
211
+ xterm-color|*-256color) color_prompt=yes;;
212
+
213
+ esac
214
+
215
+
216
+
217
+ # uncomment for a colored prompt, if the terminal has the capability; turned
218
+
219
+ # off by default to not distract the user: the focus in a terminal window
220
+
221
+ # should be on the output of commands, not on the prompt
222
+
223
+ #force_color_prompt=yes
224
+
225
+
226
+
227
+ if [ -n "$force_color_prompt" ]; then
228
+
229
+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; the
230
+
231
+ # We have color support; assume it's compliant with Ecma-48
232
+
233
+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
234
+
235
+ # a case would tend to support setf rather than setaf.)
236
+
237
+ color_prompt=yes
238
+
239
+ else
240
+
241
+ color_prompt=
242
+
243
+ fi
244
+
245
+ fi
246
+
247
+
248
+
249
+ if [ "$color_prompt" = yes ]; then
250
+
251
+ PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]$ '
252
+
253
+ else
254
+
255
+ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$ '
256
+
257
+ fi
258
+
259
+ unset color_prompt force_color_prompt
260
+
261
+
262
+
263
+ # If this is an xterm set the title to user@host:dir
264
+
265
+ case "$TERM" in
266
+
267
+ xterm*|rxvt*)
268
+
269
+ PS1="[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a]$PS1"
270
+
271
+ ;;
272
+
273
+ *)
274
+
275
+ ;;
276
+
277
+ esac
278
+
279
+
280
+
281
+ # enable color support of ls and also add handy aliases
282
+
283
+ if [ -x /usr/bin/dircolors ]; then
284
+
285
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
286
+
287
+ alias ls='ls --color=auto'
288
+
289
+ #alias dir='dir --color=auto'
290
+
291
+ #alias vdir='vdir --color=auto'
292
+
293
+
294
+
295
+ alias grep='grep --color=auto'
296
+
297
+ alias fgrep='fgrep --color=auto'
298
+
299
+ alias egrep='egrep --color=auto'
300
+
301
+ fi
302
+
303
+
304
+
305
+ # colored GCC warnings and errors
306
+
307
+ #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
308
+
309
+
310
+
311
+ # some more ls aliases
312
+
313
+ alias ll='ls -alF'
314
+
315
+ alias la='ls -A'
316
+
317
+ alias l='ls -CF'
318
+
319
+
320
+
321
+ # Add an "alert" alias for long running commands. Use like so:
322
+
323
+ # sleep 10; alert
324
+
325
+ 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$//'\'')"'
326
+
327
+
328
+
329
+ # Alias definitions.
330
+
331
+ # You may want to put all your additions into a separate file like
332
+
333
+ # ~/.bash_aliases, instead of adding them here directly.
334
+
335
+ # See /usr/share/doc/bash-doc/examples in the bash-doc package.
336
+
337
+
338
+
339
+ if [ -f ~/.bash_aliases ]; then
340
+
341
+ . ~/.bash_aliases
342
+
343
+ fi
344
+
345
+
346
+
347
+ # enable programmable completion features (you don't need to enable
348
+
349
+ # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
350
+
351
+ # sources /etc/bash.bashrc).
352
+
353
+ if ! shopt -oq posix; then
354
+
355
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
356
+
357
+ . /usr/share/bash-completion/bash_completion
358
+
359
+ elif [ -f /etc/bash_completion ]; then
360
+
361
+ . /etc/bash_completion
362
+
363
+ fi
364
+
365
+ fi
366
+
367
+
368
+
369
+ ## CUDA paths
370
+
371
+ export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}
372
+
373
+ export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
374
+
375
+
376
+
377
+ ## CUDA paths
378
+
379
+ export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}
380
+
381
+ export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
382
+
383
+
384
+
385
+ ## CUDA paths
386
+
387
+ export PATH=/usr/local/cuda-10.2/bin:/usr/local/cuda-10.2/NsightCompute-2019.1${PATH:+:${PATH}}
388
+
389
+
390
+
391
+ ##openpose_path
392
+
393
+ export PYTHONPATH=/media/hegehoge/0746e58c-9c06-45a5-8029-92750018f1d0/openpose/code/pytorch_Realtime_Multi-Person_Pose_Estimation/lib:$PYTHONPATH
394
+
395
+ export DISPLAY=localhost:0.0
396
+
125
397
  ```
126
398
 
127
399
 
@@ -148,7 +420,9 @@
148
420
 
149
421
  Pillow 7.2.0
150
422
 
151
- pip 19.2.3
423
+ pip 19.2.3
424
+
425
+
152
426
 
153
427
 
154
428