Skip to content

Commit 3ed1c2b

Browse files
committed
Remove obsolete Bash configuration
1 parent db99883 commit 3ed1c2b

32 files changed

+112
-3574
lines changed

.aliases

-56
This file was deleted.

.bash_profile

-57
This file was deleted.

.bash_prompt

-6
This file was deleted.

.config/fish/conf.d/abbrevs.fish

+21-14
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
1-
# Always enable colored `grep` output
2-
# Note: `GREP_OPTIONS="--color=auto"` is deprecated, hence the alias usage.
3-
abbr --add grep 'grep --color=auto'
4-
abbr --add fgrep 'fgrep --color=auto'
5-
abbr --add egrep 'egrep --color=auto'
1+
abbr --add rm 'rm -v'
2+
abbr --add cp 'cp -v'
3+
abbr --add mv 'mv -v'
64

75
# Format disk usage statistics in a human-readable manner
86
abbr --add du 'du -hc -d 1 | sort --reverse --sort=human-numeric | less -FX'
97

10-
abbr --add ls 'ls -lhF'
11-
128
# prefer eza instead of ls if available
9+
abbr --add ls 'ls -lhF'
1310
if type -q eza
1411
abbr --add eza 'eza --all --classify --color=always --header --icons=always --long --time-style long-iso'
15-
abbr --add ls 'eza --all --classify --color=always --header --icons=always --long --time-style long-iso | less -RFX'
12+
abbr --add ls 'eza --all --classify --color=always --header --icons=auto --long --time-style long-iso | less -RFX'
1613
end
1714

18-
abbr --add rm 'rm -v'
19-
abbr --add cp 'cp -v'
20-
abbr --add mv 'mv -v'
15+
# Always enable colored `grep` output
16+
# Note: `GREP_OPTIONS="--color=auto"` is deprecated, hence the alias usage.
17+
abbr --add grep 'grep --color=auto'
18+
abbr --add egrep 'egrep --color=auto'
19+
abbr --add fgrep 'fgrep --color=auto'
2120

22-
function mosh_tmux
23-
echo $argv -- tmux a
24-
end
2521

22+
# https://dev.yorhel.nl/ncdu/scr
23+
abbr --add ncdu 'ncdu --color=dark --disable-delete --extended --show-itemcount --show-percent'
24+
25+
# Ignore error messages of ripgrep-all
26+
abbr --add rga 'rga --no-messages'
27+
28+
# View inline images in w3m with iTerm2
29+
abbr --add w3m 'w3m -sixel'
30+
31+
# wget
32+
abbr --add wget 'wget --hsts-file=$XDG_DATA_HOME/wget-hsts'

.config/fish/conf.d/exports.fish

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Prefer US English and use UTF-8.
2+
set --export LANG 'en_US.UTF-8'
3+
set --export LC_ALL 'en_US.UTF-8'
4+
set --export UID (id -u)
5+
6+
# Declutter $HOME
7+
set --export --path XDG_DATA_HOME "$HOME"/.local/share
8+
set --export --path XDG_CONFIG_HOME "$HOME"/.config
9+
set --export --path XDG_STATE_HOME "$HOME"/.local/state
10+
set --export --path XDG_CACHE_HOME "$HOME"/.cache
11+
set --export --path XDG_RUNTIME_DIR /run/user/"$UID"
12+
13+
# AWS CLI
14+
set --export --path AWS_SHARED_CREDENTIALS_FILE "$XDG_CONFIG_HOME"/aws/credentials
15+
set --export --path AWS_CONFIG_FILE "$XDG_CONFIG_HOME"/aws/config
16+
17+
# docker
18+
set --export --path DOCKER_CONFIG "$XDG_CONFIG_HOME"/docker
19+
20+
# fzf.fish
21+
set --export fzf_git_log_opts "--preview-window=down"
22+
23+
# Avoid issues with `gpg` as installed via Homebrew.
24+
# https://stackoverflow.com/a/42265848/96656
25+
set --export GPG_TTY (tty);
26+
27+
# Homebrew
28+
set --export HOMEBREW_NO_ANALYTICS "1"
29+
set --export HOMEBREW_NO_INSECURE_REDIRECT "1"
30+
set --export HOMEBREW_CASK_OPTS "--require-sha"
31+
set --export HOMEBREW_CASK_OPTS "--appdir=/Applications"
32+
33+
# Don’t clear the screen after quitting a manual page.
34+
set --export MANPAGER "less -X"
35+
36+
# readline
37+
set --export --path INPUTRC "$XDG_CONFIG_HOME"/readline/inputrc
38+
39+
# Starship
40+
set --export STARSHIP_LOG "error"
41+
42+
# Make vim the default editor.
43+
set --export EDITOR "hx"
44+
45+
# Mosh
46+
set --export MOSH_SERVER_NETWORK "prefer-inet6"
47+
48+
# w3m
49+
set --export --path W3M_DIR "$XDG_DATA_HOME"/w3m
50+
51+
# wget
52+
set --export --path WGETRC "$XDG_CONFIG_HOME"/wgetrc
53+
54+
# zellij
55+
set --export ZELLIJ_AUTO_ATTACH true

.config/fish/conf.d/paths.fish

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fish_add_path ~/.local/bin
2+
fish_add_path /usr/local/texlive/2023/bin/universal-darwin
3+
fish_add_path /Applications/kdiff3.app/Contents/MacOS
4+
fish_add_path /Library/TeX/texbin

.config/fish/config.fish

+2-26
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,17 @@
1-
# Prefer US English and use UTF-8.
2-
set --export LANG 'en_US.UTF-8'
3-
set --export LC_ALL 'en_US.UTF-8'
4-
set --export UID (id -u)
5-
6-
# Declutter $HOME
7-
set --export --path XDG_DATA_HOME "$HOME/.local/share"
8-
set --export --path XDG_CONFIG_HOME "$HOME/.config"
9-
set --export --path XDG_STATE_HOME "$HOME/.local/state"
10-
set --export --path XDG_CACHE_HOME "$HOME/.cache"
11-
set --export --path XDG_RUNTIME_DIR "/run/user/$UID"
12-
13-
# fzf.fish
14-
set --export fzf_git_log_opts "--preview-window=down"
15-
161
# https://gist.github.com/pudquick/29bc95b6c49703992981864e48f8e341
172
alias brew '~/.local/homebrew/bin/brew'
183

194
# silence welcome message in interactive shells
205
set fish_greeting
216

22-
fish_add_path ~/.local/bin
23-
fish_add_path /usr/local/texlive/2023/bin/universal-darwin
24-
fish_add_path /Applications/kdiff3.app/Contents/MacOS
25-
fish_add_path /Library/TeX/texbin
26-
27-
function tmosh
28-
mosh $argv -- tmux new-session -A -s ssh_tmux
29-
end
30-
317
starship init fish | source
328
atuin init fish | source
339

3410
# Run fastfetch only once after boot or first shell start
35-
if not test -f /tmp/.fastfetch_shown
11+
if status is-interactive
12+
and not test -f /tmp/.fastfetch_shown
3613
if type -q fastfetch
3714
fastfetch
3815
touch /tmp/.fastfetch_shown
3916
end
4017
end
41-

.config/fish/fish_plugins

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
jorgebucaran/fisher
22
dracula/fish
3+
orefalo/grc
34
patrickf1/fzf.fish

.config/fish/functions/zmosh.fish

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function zmosh
2+
mosh $argv -- zellij attach --create
3+
end

.config/helix/config.toml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
theme = "kanagawa"
2+
3+
[editor]
4+
cursorline = true
5+
rulers = [80]
6+
7+
# [editor.cursor-shape]
8+
# insert = "bar"
9+
# normal = "block"
10+
# select = "underline"
11+
12+
# [editor.lsp]
13+
# display-inlay-hints = true
14+
15+
# [editor.whitespace]
16+
# render = "all"
17+
18+
# [editor.whitespace.characters]
19+
# space = "·"
20+
# nbsp = "⍽"
21+
# tab = "→"
22+
# newline = "⏎"
23+
# tabpad = "·"
24+

.config/less/termcap

-14
This file was deleted.

0 commit comments

Comments
 (0)