-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_bashrc
150 lines (125 loc) · 3.89 KB
/
dot_bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PATH="$HOME/.cargo/bin:$PATH"
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# User specific aliases and functions
# if [ -d ~/.bashrc.d ]; then
# for rc in ~/.bashrc.d/*; do
# if [ -f "$rc" ]; then
# . "$rc"
# fi
# done
# fi
#
# unset rc
# [ -n "$SSH_CONNECTION" ] && unset SSH_ASKPASS
# export GIT_ASKPASS=
export MICRO_TRUECOLOR=1
export EDITOR=/usr/bin/micro
source ~/.local/share/blesh/ble.sh
source ~/.blerc.sh
source ~/.bleopts.sh
source ~/.aliases.sh
if ! [ -f /run/.containerenv ]; then
source ~/.fzf.bash
ble-import -d integration/fzf-completion
ble-import -d integration/fzf-key-bindings
fi
eval "$(starship init bash)"
alias dir='dir --color=always --group-directories-first -p --quoting-style=shell-escape'
alias ls='ls --color=auto --group-directories-first -p -A'
alias grep='grep --color=auto'
alias rm="echo WRONG removal of "
function cd () {
clear
new_directory="$*";
if [ $# -eq 0 ]; then
new_directory=${HOME};
fi;
builtin cd "${new_directory}" && dir
}
function open () {
for arg
do xdg-open "$arg"
done
}
function m() {
if [ -f /run/.containerenv ]; then
distrobox-host-exec micro $1;
else
micro $1
fi
}
# alias rc="m ~/.bashrc && source ~/.bashrc && cp ~/.bashrc ~/.local/share/chezmoi/dot_bashrc"
alias rc="m ~/.bashrc && source ~/.bashrc"
alias bc="m ~/.blerc.sh && source ~/.bashrc"
alias mc="m ~/.config/micro/bindings.json"
alias oc="m ~/.bleopts.sh && source ~/.bashrc"
alias sc="m ~/.config/starship.toml && source ~/.bashrc"
alias nc="m ~/.gnome2/accels/nemo"
alias vc="m ~/.config/vivaldi-css/tweaks.css"
alias dc="m ~/.config/.dircolors && source ~/.bashrc"
alias tc="m /var/home/atimeofday/.var/app/com.raggesilver.BlackBox/data/blackbox/schemes/Custom-Catppuccin-Mocha.json"
alias fc="m ~/.config/forge/config/windows.json"
alias ms="m ~/.config/micro/settings.json"
alias mh="cd ~/Programs/micro-source/runtime/help"
alias data="cd /var/mnt/Data/"
alias dt="cd /var/mnt/Data/"
alias dw="cd ~/Downloads"
alias extensions="cd ~/.local/share/gnome-shell/extensions"
alias blesh="cd ~/.local/share/blesh/"
alias apps="cd ~/.local/share/applications"
alias flatpak-apps="cd ~/.local/share/flatpak/exports/share/applications"
alias pic="cd ~/Pictures"
alias pro="cd ~/Programs"
alias wall="cd ~/Pictures/Wallpapers"
alias pptx-pdf="distrobox enter fedora37 -e soffice --headless --convert-to pdf $1"
alias sr="speedread $1"
alias db="distrobox enter fedora37"
alias fedora="distrobox enter fedora"
alias projects="distrobox enter projects"
alias memc="cd /var/home/atimeofday/Projects/memory-collector && distrobox enter memory-collector"
# alias m="micro $1"
alias f="m $1"
alias h="cd ~"
alias b="cd -"
alias a="cd .."
alias d="dir"
alias l="clear && ls"
alias c="clear && dir"
alias x="open"
alias k="open"
alias j="cd"
alias n="nnn"
alias g="pwd | tr -d '\n' | wl-copy"
alias s='sudo $(history -p \!-2)'
alias p="cd ~/Programs"
alias backups="cd /var/mnt/Data/Backups/atimeofday"
function bu {
dateFolder=$(date +%m-%d-%y)
cd '/var/mnt/Data/Backups/atimeofday'
mkdir $dateFolder
cp -r ~ $dateFolder
}
function mergepdf () {
gs -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=$3 -dBATCH $1 $2
}
function dlp () {
yt-dlp -f mp4 -x --audio-format mp3 "$1"
}
# curl -sS https://starship.rs/install.sh | sh
alias work="cd /var/mnt/Data/Documents/work/Applications"
alias box-starship="curl -sS https://starship.rs/install.sh | sh"
alias box-initf="sudo dnf install wl-clipboard git && curl -sS https://starship.rs/install.sh | sh && source ~/.bashrc"
alias vtt="python vttengine.py"
alias r='python /var/home/atimeofday/Projects/routines/routines.py'
alias routines='cd /var/home/atimeofday/Projects/routines && m /var/home/atimeofday/Projects/routines/routines.py'
export GDK_BACKEND=wayland