-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_bashrc
62 lines (51 loc) · 1.68 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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# 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
# modify some stuff
alias vim='nvim'
alias vi="nvim"
alias vimdiff='nvim -d'
export EDITOR=nvim
#handy aliases
alias git-upd='git add . && git commit -m "upd" && git push'
alias sys-upd='yay -Syu ; flatpak update ; sudo fwupdmgr update ; sudo checkservices'
alias sys-enc='sudo systemd-cryptenroll --tpm2-device=auto --wipe-slot=tpm2 /dev/nvme0n1p2'
alias sys-arm='sudo pacman -Qdttq | sudo pacman -Rs - ; flatpak uninstall --unused ; sudo pacman -S --needed gnome'
alias mpv-audio='mpv --no-video'
alias yt-dlaudio='yt-dlp -f "bestaudio"'
alias rip-mp3='mkdir mp3s && for f in *.opus; do ffmpeg -i "$f" -c:a libmp3lame "mp3s/${f%.webm}.mp3"; done'
alias rip-aac='mkdir aacs && for f in *.opus; do ffmpeg -i "$f" -c:a aac "aacs/${f%.webm}.m4a"; done'
alias gdm-upd='sudo cp ~/.config/monitors.xml /var/lib/gdm/.config/'
#source ~/vulkansdk/1.3.224.1/setup-env.sh
#export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
#. "$HOME/.cargo/env"
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"