Skip to content

Commit e6fad02

Browse files
committed
clang to latest, use broot, difft as an option for semantic diff
1 parent 3b5b79a commit e6fad02

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

.bashrc

+4-2
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ alias tree="tree -C"
5353
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
5454
#PS1='\u@\h:\w\$ '
5555

56-
# https://the.exa.website/
56+
# https://github.com/eza-community/eza
5757
alias ls="ls --human-readable --group-directories-first --sort=extension --color=auto"
58-
test -x "$(command -v exa)" && alias ls="exa --group-directories-first --sort=extension"
58+
test -x "$(command -v eza)" && alias ls="eza --group-directories-first --sort=extension"
5959

6060
test -x "$(command -v bat)" && alias cat=bat
6161
test -x "$(command -v rg)" && alias grep="rg --ignore-case"
6262
test -x "$(command -v vivid)" && export LS_COLORS="$(vivid generate snazzy)"
6363
test -x "$(command -v zoxide)" && eval "$(zoxide init bash)"
6464
test -x "$(command -v nvim)" && alias vim=nvim
65+
test -x "$(command -v broot)" && source $HOME/.config/broot/launcher/bash/br
6566

6667
# https://github.com/BurntSushi/ripgrep/issues/86#issuecomment-331718946
6768
rgl() { rg -i -p -M 500 "$@" | less -XFR; }
@@ -77,3 +78,4 @@ batdiff() { git diff --name-only --diff-filter=d | xargs bat --diff; }
7778
#export FZF_DEFAULT_COMMAND='rg --files --hidden -g "!.git"'
7879
export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git'
7980

81+

.gitconfig

+8-5
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@
55
[push]
66
default = simple
77

8+
[pull]
9+
rebase = true
10+
811
[credential]
912
helper = cache
1013

1114
[alias]
12-
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
1315
# http://stackoverflow.com/a/9074343/198348
1416
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
15-
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
16-
lg3 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset) --all'
17-
# there's also git log --oneline
17+
18+
# https://difftastic.wilfred.me.uk/git.html
19+
dshow = -c diff.external=difft show --ext-diff
20+
ddiff = -c diff.external=difft diff
1821

1922
# https://dandavison.github.io/delta/get-started.html
2023
[core]
@@ -28,7 +31,7 @@
2831
navigate = true
2932

3033
[merge]
31-
conflictstyle = diff3
34+
conflictstyle = zdiff3
3235

3336
[diff]
3437
colorMoved = default

setup.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- sharkdp/diskus https://github.com/sharkdp/diskus (du -sh alternative that's parallelized)
1111
- dandavision/delta https://github.com/dandavison/delta
1212
- zoxide (successor to fasd, autojump) https://github.com/ajeetdsouza/zoxide
13+
- broot https://github.com/Canop/broot - file manager
1314
- bkt https://github.com/dimo414/bkt (for caching command output)
1415
- plt/racket
1516
- rustup
@@ -33,18 +34,18 @@ sudo pip3 install ipython bpython requests flask pylint black pep8 rope pyright
3334
# clang, gcc
3435
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
3536
sudo tee /etc/apt/sources.list.d/llvm.list << END
36-
# 16, https://apt.llvm.org/
37-
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main
38-
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main
37+
# https://apt.llvm.org/
38+
deb http://apt.llvm.org/noble/ llvm-toolchain-noble main
39+
deb-src http://apt.llvm.org/noble/ llvm-toolchain-noble main
3940
END
4041
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
4142
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
4243
# related to having a c compiler
4344
# https://github.com/microsoft/WSL/issues/5663 - "/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link"
4445

45-
sudo apt update && sudo apt install clang-16 clangd-16 gcc-13 g++-13
46+
sudo apt update && sudo apt install clang clangd clang-format gcc-13 g++-13
4647
# https://gist.github.com/mpusz/886a2a68742f1f63820d6b1425866791
47-
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 160 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-16 --slave /usr/bin/clangd clangd /usr/bin/clangd-16
48+
#sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 180 --slave /usr/bin/clang++ clang++ /usr/bin/clang++-18 --slave /usr/bin/clangd clangd /usr/bin/clangd-18
4849
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 130 --slave /usr/bin/g++ g++ /usr/bin/g++-13
4950

5051
# https://github.com/nodesource/distributions/blob/master/README.md

0 commit comments

Comments
 (0)