# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
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$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# 以降が追加した部分
export PATH=$PATH:$HOME/bin
export VISUAL=micro
export LESSEDIT='micro ?lm-startpos %lm,0. %f'
export LC_MESSAGES=ja_JP.UTF-8
export LC_IDENTIFICATION=ja_JP.UTF-8
export LC_COLLATE=ja_JP.UTF-8
export LANG=ja_JP.UTF-8
export LC_MEASUREMENT=ja_JP.UTF-8
export LC_CTYPE=ja_JP.UTF-8
export LC_TIME=ja_JP.UTF-8
export LC_NAME=ja_JP.UTF-8
# wls
# export DISPLAY=localhost:0.0
# wsl 2
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
export LIBGL_ALWAYS_INDIRECT=1
export XIM=uim
export XMODIFIERS=@im=uim
export UIM_CANDWIN_PROG=uim-candwin-gtk
export GTK_IM_MODULE=uim
export QT_IM_MODULE=uim
# Xクライアント起動時に 「Couldn't connect to accessibility bus: ... 接続を拒否されました」
とワーニングが出る場合に、これが出ないように防止
export NO_AT_BRIDGE=1
alias lv="lv -c -E'vim -c %d'"
alias lsl="ls -l --time-style=long-iso"
alias lsal="ls -al --time-style=long-iso"
# prompt for Powerline-shell
function _update_ps1() {
PS1=$(~/.local/bin/powerline-shell $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# GUIとCLIで起動するテキストエディタを自動で切り替える
if [[ $DISPLAY ]];then
export EDITOR=gedit
else
export EDITOR=micro
fi
cd
検索
自己紹介
記事一覧
リンク
・Firefoxのキーボードショートカット
・Linuxコマンド
・bash
・窓の杜
-------------------------------------
・きょうは何の記念日 ?
・[公式] とっとり花回廊
・高品質なフリー画像素材
・Linuxコマンド
・bash
・窓の杜
-------------------------------------
・きょうは何の記念日 ?
・[公式] とっとり花回廊
・高品質なフリー画像素材
お問い合わせ
ラベル
- .bashrc (1)
- 3Dオブジェクト (1)
- about:config (1)
- Aimp (1)
- Alacritty (1)
- Android (2)
- ape (1)
- AssistiveTouch (1)
- Atom (1)
- bash (1)
- C# (1)
- CapsLock (1)
- Chocolatey (2)
- cmd (1)
- Cmder (2)
- ConEmu (3)
- Ctrl2cap (1)
- Damラジオ (1)
- Dark Mode (1)
- Dark Reader (1)
- Darko (1)
- DeepL (1)
- Dexpot (1)
- Dism (1)
- Dock (2)
- Dropbox (1)
- EaseUS Todo Backup (1)
- Easy Context Menu (1)
- Edge (2)
- editor (1)
- Evermusic (1)
- Evernote (1)
- excel (1)
- explorer (4)
- Explzh (1)
- FastPreview (2)
- FileTypesMan (1)
- Firefox (8)
- Firefox Quantum (2)
- Firemin (1)
- fish (1)
- flac (1)
- Font (3)
- foobar2000 (1)
- Foxit Reader (1)
- Foxit Reader 10 (1)
- gedit (1)
- Git (3)
- Git for Windows (3)
- git-bash (1)
- Github (1)
- GNU nano (1)
- Google Keep (1)
- Googleカレンダー (1)
- GPT (2)
- HackGen (1)
- HackGenNerd (1)
- html (2)
- Image Divider (1)
- ImagePageSplitter (1)
- IME (1)
- iOS (3)
- iPhone (1)
- KeePass (1)
- leafpad (1)
- LINE (1)
- LINE Lite (1)
- Linuxbrew (1)
- LosslessCut (1)
- MacType (2)
- mail (2)
- MBR (1)
- Meay (1)
- Medieval CUE Splitter (1)
- micro (1)
- Microsoft Edge (3)
- Microsoft PDF 印刷 (1)
- MiniTool Partition Wizard (1)
- Monosnap (2)
- mp3tag (1)
- MPC-BE (1)
- NEC (1)
- neovim (2)
- Notepad++ (1)
- Notepads (1)
- Notion (1)
- Noto Font (1)
- OCR (1)
- OneDrive (1)
- Open in Windows Terminal (1)
- OTG (1)
- Outlook (3)
- OyaziViewer (1)
- Pale Moon (4)
- Patch My PC Updater (1)
- PDF (1)
- pluma (1)
- Powerline (2)
- Powerline-Shell (1)
- PowerShell (2)
- PowerShellCore (1)
- PowerToys (1)
- pureline (1)
- qBittorrent (1)
- quicklook (1)
- Rainmeter (7)
- Rapid Environment Editor (1)
- Remini (1)
- Rright Click Enhancer (1)
- SageThumbs (1)
- ScreenToGif (1)
- SendTo (1)
- SendTo Menu Editor (1)
- sfc (1)
- shell (1)
- ShellExView (1)
- shutdown (1)
- Skin (3)
- sleep (1)
- SnapCrab for Windows (1)
- SSD (1)
- ssh (1)
- Sumatra PDF (1)
- System Explorer (1)
- Tag (1)
- Thunderbird (3)
- Typora (1)
- U772 (1)
- Ubuntu (10)
- UEFI (1)
- USB (1)
- userChrome.css (2)
- VcXsrv (1)
- Visual Studio (1)
- Visual Studio Code (2)
- VLC (1)
- Webクリッパー (1)
- Winaero Tweaker (1)
- windows (3)
- Windows Terminal (6)
- Windows update (1)
- Windows メモリ診断 (1)
- winget (1)
- WizTree (1)
- WSL (22)
- WSL 2 (6)
- wsl2 (1)
- XLaunch (2)
- XMedia Recode (1)
- Xサーバ (1)
- アクセスを許可する (1)
- アドオン (1)
- イベントビューアー (1)
- インターネットラジオ (1)
- エディタ (4)
- エントリー (1)
- カレンダー (1)
- キーボード (2)
- キーボードショートカット (1)
- クイックアクセス (1)
- クリップボード (1)
- クリップボード履歴 (1)
- グループで表示 (1)
- ゴミ箱 (1)
- コンテキストメニュー (8)
- システムファイルを修復する (1)
- スクリーンショット (1)
- スタートにピン留め (1)
- ストレージ (1)
- スリープ (1)
- スリープ、ロック画面 (1)
- ダークモード (8)
- ターミナル (1)
- タグ (1)
- タスクバー (1)
- タブレット (1)
- ツール (1)
- パーティション (1)
- パスワード管理 (1)
- バックアップ (1)
- バックグラウンド (1)
- フォント (3)
- ブラウザ (2)
- マウス (1)
- メールチェッカー (1)
- メモリ (1)
- メモ帳 (1)
- 一太郎Pad (1)
- 音楽 (1)
- 音声抽出 (1)
- 仮想ディスクトップ (1)
- 歌詞 (1)
- 画像処理 (1)
- 画像分割 (1)
- 拡張機能 (1)
- 環境変数 (1)
- 共有 (1)
- 検索エンジン (1)
- 高速スタートアップ (1)
- 再起動 (1)
- 最近使った項目 (1)
- 時計 (1)
- 時刻 (1)
- 自動ログイン (1)
- 自動起動 (1)
- 新規作成 (1)
- 正規表現 (1)
- 青空文庫 (1)
- 切り取り&スケッチ (1)
- 設定 (6)
- 送る (1)
- 動画変換 (1)
- 動画編集 (2)
- 日本語化 (1)
- 分割 (1)
- 分割結合「あ」 (1)
- 文字化け (1)
- 無音カメラ (1)
0 コメント:
コメントを投稿