example_of_initial_ubuntu_settings
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| example_of_initial_ubuntu_settings [2025/02/20 03:30] – [Configure Git to Use Meld for Diffs in Ubuntu] jianwu | example_of_initial_ubuntu_settings [2025/03/10 14:50] (current) – [Customize .bashrc .profile] jianwu | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | [[https:// | ||
| + | |||
| ===== Example of initial Ubuntu settings ===== | ===== Example of initial Ubuntu settings ===== | ||
| First, you should install Ubuntu on your machine or through WSL2 | First, you should install Ubuntu on your machine or through WSL2 | ||
| ===== Install ubuntu-24.04 from WSL2 ===== | ===== Install ubuntu-24.04 from WSL2 ===== | ||
| - | < | + | < |
| > wsl --install Ubuntu-24.04 --location "< | > wsl --install Ubuntu-24.04 --location "< | ||
| ex) | ex) | ||
| Line 8: | Line 10: | ||
| </ | </ | ||
| ===== Setting example of .gitconfig .gitignore ===== | ===== Setting example of .gitconfig .gitignore ===== | ||
| - | < | + | < |
| $ cat ~/ | $ cat ~/ | ||
| [user] | [user] | ||
| Line 26: | Line 28: | ||
| cmd = meld " | cmd = meld " | ||
| </ | </ | ||
| - | < | + | < |
| $ cat ~/ | $ cat ~/ | ||
| # Ignore all | # Ignore all | ||
| Line 66: | Line 68: | ||
| <code Diff> | <code Diff> | ||
| $ git diff 8175285fb6420ddd2bd23df18e7f8c9c74e9e830..HEAD .bashrc | $ git diff 8175285fb6420ddd2bd23df18e7f8c9c74e9e830..HEAD .bashrc | ||
| - | diff --git a/.bashrc b/.bashrc | ||
| - | index b488fcc..a369f62 100644 | ||
| - | --- a/.bashrc | ||
| - | +++ b/.bashrc | ||
| - | @@ -8,6 +8,16 @@ case $- in | ||
| - | *) return;; | ||
| - | esac | ||
| - | |||
| - | +blk=' | ||
| - | +red=' | ||
| - | +grn=' | ||
| - | +ylw=' | ||
| - | +blu=' | ||
| - | +pur=' | ||
| - | +cyn=' | ||
| - | +wht=' | ||
| - | +clr=' | ||
| - | + | ||
| - | # don't put duplicate lines or lines starting with space in the history. | ||
| - | # See bash(1) for more options | ||
| - | | ||
| - | @@ -57,7 +67,8 @@ if [ -n " | ||
| - | fi | ||
| - | |||
| - | if [ " | ||
| - | - PS1=' | ||
| diff --git a/.bashrc b/.bashrc | diff --git a/.bashrc b/.bashrc | ||
| index b488fcc..a369f62 100644 | index b488fcc..a369f62 100644 | ||
| Line 146: | Line 122: | ||
| +# | +# | ||
| +PS1=${cyn}${PS_GIT}${clr}${PS1}${pur}'' | +PS1=${cyn}${PS_GIT}${clr}${PS1}${pur}'' | ||
| + | + | ||
| </ | </ | ||
| <code Diff> | <code Diff> | ||
| Line 162: | Line 139: | ||
| +export PATH=" | +export PATH=" | ||
| +export PATH=" | +export PATH=" | ||
| + | +# suppress glxinfo error | ||
| + | +export GALLIUM_DRIVER=d3d12 | ||
| + | +# VcXsrv(X Server) | ||
| + | + | ||
| </ | </ | ||
| <code Diff> | <code Diff> | ||
| Line 191: | Line 172: | ||
| " | " | ||
| +set number | +set number | ||
| + | |||
| + | " | ||
| + | if filereadable("/ | ||
| </ | </ | ||
| - | < | + | < |
| $ source ~/.bashrc | $ source ~/.bashrc | ||
| $ source ~/.profile | $ source ~/.profile | ||
example_of_initial_ubuntu_settings.1739989806.txt.gz · Last modified: 2025/02/20 03:30 by jianwu