-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
59 lines (48 loc) · 1.57 KB
/
.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
# .bashrc
# 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
EDITOR=vim
# add cargo directory to path
PATH=$PATH:$HOME/.cargo/bin:$HOME/Android/Sdk
# set android sdk root
ANDROID_SDK_ROOT="$HOME/Android/Sdk"
export PATH
export EDITOR
export ANDROID_SDK_ROOT
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
# cli tool aliases
alias vim="nvim"
alias ls="exa -l"
alias gs="git status"
alias ga="git add"
alias gc="git commit -S -m"
alias gp="git push"
alias top="btm --battery"
alias music="ncmpcpp --config=/home/andrew/.config/ncmpcpp/config"
alias ytdl="cd ~/Music && youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 --embed-thumbnail"
alias airplay="/opt/rpiplay -n ricebowl"
alias ted="trans en:de"
alias tde="trans de:en"
alias dock="xrandr --output DisplayPort-2 --right-of eDP --mode 1920x1080 --primary && sudo systemctl stop tlp"
alias mobile="xrandr --output DisplayPort-3 --off && sudo systemctl start tlp && xrandr --auto"
alias sysup="sudo zypper up && sudo snapper update && rustup update"
alias gdx-setup="java -jar /opt/gdx-setup_latest.jar"
# directory & file aliases
alias wmconf="vim ~/.config/sway/config"
alias dotdir="cd ~/github/personal/dotfiles"
alias gdrive="cd ~/gdrive"
# set vi mode in terminal
set -o vi
# enable starship
eval "$(starship init bash)"
# enable zoxide
eval "$(zoxide init bash --cmd y)"