Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit c8dee22

Browse files
committed
refactor: made minor tweak to various cli tools
- remove dotfiles alias in the .bashrc - change the git lol alias to display better visual cues in the git config - remove error when i open new blank tmux sessions
1 parent 4f6b6fb commit c8dee22

File tree

5 files changed

+12
-51
lines changed

5 files changed

+12
-51
lines changed

.bashrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ HISTCONTROL=ignoredups
3939
############################################
4040

4141
# managing dotfiles repo
42-
alias dotfiles='/usr/bin/git --git-dir=/home/daagi/.dotfiles/ --work-tree=/home/daagi'
42+
# moved to Gnu Stow!
43+
# alias dotfiles='/usr/bin/git --git-dir=/home/daagi/.dotfiles/ --work-tree=/home/daagi'
4344

4445
# downloading entire websites with wget
4546
alias wget-ds="wget --mirror --convert-links --adjust-extension --page-requisites --no-parent "

.config/git/config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
helper =
1111
helper = !/usr/bin/gh auth git-credential
1212
[alias]
13-
lol = log --graph --decorate --pretty=oneline --all --abbrev-commit
13+
; lol = log --graph --decorate --pretty=oneline --all --abbrev-commit
14+
lol = log --graph --decorate --pretty=format:'%C(yellow)%h%Creset - %C(bold blue)%d%Creset %s %Cgreen(%cr)%Cresetby %an' --all --abbrev-commit
1415
contributors = shortlog --summary --numbered
1516
ao = remote add origin
1617
br = branch
1718
st = status
1819
co = commit
20+
coa = commit --amend --no-edit
1921
ch = checkout
2022
cl = clone
2123
last = log -1 HEAD
143 Bytes
Binary file not shown.

.config/ranger/rifle.conf

Lines changed: 6 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,10 @@
5454
# Rarely installed browsers get higher priority; It is assumed that if you
5555
# install a rare browser, you probably use it. Firefox/konqueror/w3m on the
5656
# other hand are often only installed as fallback browsers.
57-
# ext x?html?, has surf, X, flag f = surf -- file://"$1"
58-
# ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
59-
# ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
60-
# ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
61-
# ext x?html?, has dwb, X, flag f = dwb -- "$@"
62-
# ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
63-
# ext x?html?, has luakit, X, flag f = luakit -- "$@"
64-
# ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
65-
# ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@"
66-
# ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
67-
# ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
68-
# ext x?html?, has midori, X, flag f = midori -- "$@"
69-
# ext x?html?, has opera, X, flag f = opera -- "$@"
7057
ext x?html?, has firefox, X, flag f = firefox -- "$@"
71-
# ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
72-
# ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
7358
ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@"
7459
ext x?html?, has chromium, X, flag f = chromium -- "$@"
7560
ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
76-
# ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
77-
# ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
78-
# ext x?html?, has elinks, terminal = elinks "$@"
79-
# ext x?html?, has links2, terminal = links2 "$@"
80-
# ext x?html?, has links, terminal = links "$@"
81-
# ext x?html?, has lynx, terminal = lynx -- "$@"
8261
ext x?html?, has w3m, terminal = w3m "$@"
8362

8463
#-------------------------------------------
@@ -89,6 +68,11 @@ mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@"
8968
mime ^text, label pager = "$PAGER" -- "$@"
9069
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
9170
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
71+
# open all text files
72+
# thnaks arch wiki: https://wiki.archlinux.org/title/Ranger#File_association
73+
else = xdg-open "$1"
74+
label editor = "$EDITOR" -- "$@"
75+
label pager = "$PAGER" -- "$@"
9276

9377
ext 1 = man "$1"
9478
ext s[wmf]c, has zsnes, X = zsnes "$1"
@@ -118,17 +102,7 @@ ext midi?, terminal, has wildmidi = wildmidi -- "$@"
118102
#--------------------------------------------
119103
# Video/Audio with a GUI
120104
#-------------------------------------------
121-
# mime ^video|audio, has gmplayer, X, flag f = gmplayer -- "$@"
122-
# mime ^video|audio, has smplayer, X, flag f = smplayer "$@"
123-
# mime ^video, has mpv, X, flag f = mpv -- "$@"
124-
# mime ^video, has mpv, X, flag f = mpv --fs -- "$@"
125-
# mime ^video, has mplayer2, X, flag f = mplayer2 -- "$@"
126-
# mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@"
127-
# mime ^video, has mplayer, X, flag f = mplayer -- "$@"
128-
# mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@"
129105
mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
130-
# mime ^video|audio, has totem, X, flag f = totem -- "$@"
131-
# mime ^video|audio, has totem, X, flag f = totem --fullscreen -- "$@"
132106

133107
#--------------------------------------------
134108
# Video without X
@@ -140,36 +114,20 @@ mime ^video, terminal, !X, has mplayer = mplayer -- "$@"
140114
#-------------------------------------------
141115
# Documents
142116
#-------------------------------------------
143-
# ext pdf, has llpp, X, flag f = llpp "$@"
144-
# ext pdf, has zathura, X, flag f = zathura -- "$@"
145-
# ext pdf, has mupdf, X, flag f = mupdf "$@"
146-
# ext pdf, has mupdf-x11,X, flag f = mupdf-x11 "$@"
147-
# ext pdf, has apvlv, X, flag f = apvlv -- "$@"
148-
# ext pdf, has xpdf, X, flag f = xpdf -- "$@"
117+
ext pdf, has zathura, X, flag f = zathura -- "$@"
149118
ext pdf, has evince, X, flag f = evince -- "$@"
150-
# ext pdf, has atril, X, flag f = atril -- "$@"
151-
# ext pdf, has okular, X, flag f = okular -- "$@"
152-
# ext pdf, has epdfview, X, flag f = epdfview -- "$@"
153-
# ext pdf, has qpdfview, X, flag f = qpdfview "$@"
154119
ext pdf, has open, X, flag f = open "$@"
155120

156121
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
157122

158-
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@"
159-
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
160123
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@"
161124
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@"
162125
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@"
163126

164127
ext djvu, has zathura,X, flag f = zathura -- "$@"
165128
ext djvu, has evince, X, flag f = evince -- "$@"
166-
ext djvu, has atril, X, flag f = atril -- "$@"
167-
ext djvu, has djview, X, flag f = djview -- "$@"
168129

169-
ext epub, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
170130
ext epub, has zathura, X, flag f = zathura -- "$@"
171-
ext epub, has mupdf, X, flag f = mupdf -- "$@"
172-
ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
173131

174132
ext cbr, has zathura, X, flag f = zathura -- "$@"
175133
ext cbz, has zathura, X, flag f = zathura -- "$@"

.config/tmux/tmux.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ bind-key "_" split-window -fv -c "#{pane_current_path}"
5757

5858
# prompt for path & retain path when opening new windows
5959
unbind "c"
60-
bind c command-prompt -p "Window name:" "new-window -c '#{pane_current_path}'; rename-window '%%'"
60+
bind c command-prompt -p "Window name:" "new-window -c'#{pane_current_path}'; rename-window '%%'"
6161

6262
# navigating between panes in a window with h,j,k,l -> like vim!!
6363
unbind "h"

0 commit comments

Comments
 (0)