-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
60 lines (55 loc) · 1.51 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
#
# .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
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
export QT_SCALE_FACTOR=2.5
export XDG_CONFIG_HOME=~/.config
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias t='tmux'
alias c='clear'
alias x='sudo $(history -p !!)'
alias gdb='gdb -q -ex init-pwndbg "$@"'
alias gdbe='gdb -q -ex init-gef "$@"'
alias n=nvim
alias nt='nvim ~/Documents/vault/personal/TODO.md'
alias l='ls --color=auto -lah'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias d='cd ~/united/development/ && l'
alias p='cd ~/united/programs/ && l'
alias resetff='cp -rf $HOME/.config/mozilla/* $HOME/.mozilla/firefox/*default-release*/ && $HOME/.mozilla/firefox/*default-release*/updater.sh'
PS1='[\u@\h \W]\$ '
export PATH=$PATH:~/.config/scripts/statusbar/:$HOME/united/proglinks
eval "$(starship init bash)"
fcd() {
cd "$(find -type d | fzf)"
}
open() {
o="$(find -type f | fzf)"
cd "${o%/*}/" && n $o
}
export MANPAGER='nvim +Man!'
export EDITOR=vim
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
xset r rate 300 50