-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
91 lines (73 loc) · 2.88 KB
/
.bashrc
File metadata and controls
91 lines (73 loc) · 2.88 KB
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
# [[ $- != *i* ]] && return
if [[ "$(tty)" == "/dev/tty1" ]]; then
Hyprland > /dev/null &\
/bin/dash -c "
echo toor|sudo -S clear
(sudo networkctl down wlp4s0 &&sudo macchanger wlp4s0 -r &&sudo networkctl up wlp4s0)&\
(sleep 1 && xhost + local:)&\
(XDG_MENU_PREFIX=arch- kbuildsycoca6)&\
clear
" 2>&1>/dev/null
fi
# sudo systemctl start warp-svc&\
PS1='\[\e[1;32m\]\w\[\e[0m\] \[\e[1;34m\]❯❯\[\e[0m\] ' #\033[s\r\033[$(($COLUMNS-8))C$(date +%-H:%0M:%0S)\033[u'
HISTCONTROL=ignoreboth
HISTFILESIZE=100000
HISTSIZE=100000
export PATH="/opt/android-sdk/platform-tools/:/opt/flutter/bin:$HOME/.local/bin:$HOME/.go/bin:$HOME/.bun/bin:$PATH"
export XDG_CONFIG_HOME=$HOME/.config/
export CHROME_EXECUTABLE=brave
export GOPATH="$HOME/.go/"
export LESS='-R --use-color -Dd+r$Du+b$'
export MANROFFOPT="-P -c"
export MANPAGER="less"
export EDITOR=nvim
# fix for broken applications
export QT_QPA_PLATFORM=xcb
shopt -s histappend
alias mstart="mongod --dbpath /home/a/godot/db/"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias diff='diff --color=auto'
alias ip='ip --color=auto'
alias p="python3"
alias eb="nohup $@ 2>&1 > /dev/null"
pyenv() { source "$HOME/.launch/env/$1/bin/activate"; }
alias anon="sudo su -c 'networkctl down wlp4s0 && macchanger -r wlp4s0 && networkctl up wlp4s0'"
alias dl="aria2c -s32 -j64 -x16 -k8M -m0 -t20 --continue=true --check-certificate=false --allow-piece-length-change=true --optimize-concurrent-downloads=true --stream-piece-selector=geom --enable-http-pipelining"
alias wstart="echo toor | sudo -S systemctl start warp-svc && sleep 1 && warp-cli connect"
alias wstop="warp-cli disconnect && echo toor|sudo -S systemctl stop warp-svc"
alias wd="warp-cli disconnect"
alias wu="warp-cli connect"
alias ws="warp-cli status"
alias zignew="$HOME/.launch/bin/zig"
alias brave='(echo toor | sudo -S networkctl down wlp4s0) && brave'
alias nd='echo toor | sudo -S networkctl down wlp4s0'
alias nu='echo toor | sudo -S networkctl up wlp4s0'
#alias pkg-info="sudo pacman -Qi"
#alias local-install="sudo pacman -U"
#alias clr-cache="sudo pacman -Scc"
#alias unlock="sudo rm /var/lib/pacman/db.lck"
#sshpass -p root ssh a@192.168.158.77 rpicam-vid --flicker-period=10000us --width=1920 --height=1080 -t0 -o- | tee vid.mp4 | mpv - --speed=2 --fps=25 --fs
dircat() {
if [ "$#" -ne 1 ]; then
echo "Usage: dircat <directory>"
echo "Concatenates all files recursively within the specified directory with headers/footers."
return 1
fi
TARGET_DIR="$1"
if [ ! -d "$TARGET_DIR" ]; then
echo "Error: Directory '$TARGET_DIR' not found or is not a directory."
return 1
fi
find "$TARGET_DIR" -type f -print0 | while IFS= read -r -d $'\0' file; do
echo ">>>>>>>>>>>>>>>>>> ${file}"
cat "${file}"
echo ""
echo "<<<<<<<<<<<<<<<<<< ${file}"
echo ""
done
return 0
}