-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
77 lines (58 loc) · 1.49 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# ~/.bashrc
#
# If running from tty1 start sway
[ "$(tty)" = "/dev/tty1" ] && ssh-agent Hyprland
# If not running interactively, don't do anything
[[ $- != *i* ]]
source /usr/share/blesh/ble.sh --noattach
export PS1="\[$(tput bold)\]\[\033[38;5;129m\]\u\[$(tput sgr0)\]@\h \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;129m\]\W\[$(tput sgr0)\] \$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')> \[$(tput sgr0)\]"
# new paths
export PATH=/home/eagledb14/.cargo/bin:$PATH
# new env
export _JAVA_AWT_WM_NONREPARENTING=1
export GOPATH=~/.config/go
export EDITOR=nvim
export VISUAL=nvim
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export PATH=$PATH:$(go env GOPATH)/bin
# aliases
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias la='ls -A'
alias vi='nvim'
alias gp='git push'
alias gs='git status'
alias yay='yay --sudoloop'
function gc {
git add .
git commit
}
#functions
#go to class folder
function class {
cd ~/sync/classes
}
# go to project folder
function proj {
cd ~/sync/projects
}
function storage {
cd /mnt/nvme1n1/
}
function new {
nohup alacritty --working-directory "$PWD" &>/dev/null &
disown
}
function sf {
cd $(find ~ -type d 2> /dev/null | fzf --preview "ls {}")
}
function init {
tmux new-session -d
name=$(tmux list-sessions -F '#{session_name}' | tail -n 1)
tmux new-window -t "$name:2"
tmux new-window -t "$name:3"
tmux select-window -t "$name:1"
tmux attach-session -t "$name"
}
[[ ${BLE_VERSION-} ]] && ble-attach