-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
109 lines (87 loc) · 2.45 KB
/
Copy path.bashrc
File metadata and controls
109 lines (87 loc) · 2.45 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# ____ ___ _____ __ __ #
# / __ ) / | / ___/ / / / / #
# / __ |/ /| | \__ \ / /_/ / #
# / /_/ // ___ | ___/ // __ / #
# /_____//_/ |_|/____//_/ /_/ #
# OPTIONS
## Exports
export TERM="wezterm"
export EDITOR="emacs"
export FZF_DEFAULT_COMMAND='find . \! \( -type d -path ./.git -prune \) \! -type d \! -name '\''*.tags'\'' -printf '\''%P\n'\'
export PATH="~/Projekty/scripts:~/.local/scripts:$PATH"
export MANPAGER='nvim +Man!'
## Options
bind "set colored-stats on"
bind "set colored-completion-prefix on"
bind "set completion-ignore-case on"
bind "set completion-map-case on"
bind "set show-all-if-ambiguous on"
bind "set mark-symlinked-directories on"
complete -cf sudo
## Keybindings
set -o vi
bind Space:magic-space
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
## Shopt
shopt -s autocd
shopt -s cdspell
shopt -s histappend
shopt -s cmdhist
## History
export PROMPT_COMMAND="history -a"
export HISTSIZE=2000
export HISTFILESIZE=2000
export HISTCONTROL=erasedups:ignoredups:ignorespace
## Prompt
PS1="\[\033[31m\]\w >\[\e[m\] "
## Fetch
fastfetch
# ALIASES
## Nix
alias nsp="nix-shell -p"
alias nurse="sudo nixos-rebuild switch --impure --flake ~/.nixos-btw#nixos-btw"
alias ffs="flatpak update; sudo nix flake update --flake ~/.nixos-btw; sudo nixos-rebuild switch --impure --flake ~/.nixos-btw#nixos-btw"
alias nso="nix-store --optimise"
## Commands
### cd
alias ..="cd .."
alias cd.="cd .."
alias cd..="cd ../.."
alias cd...="cd ../../.."
alias cd....="cd ../../../.."
### directories
alias ls="ls -AGFhlv --color=always --group-directories-first"
alias mkd="mkdir -pv"
### files
alias cp="cp -i"
alias mv="mv -i"
### find
alias fd="fd -Hia --color always"
alias rg="rg -i --unrestricted --follow --pretty"
### remove
# alias tr="trash -vi"
### system
alias bt="btop"
alias df="df -hl --exclude-type=tmpfs --exclude-type=devtmpfs --exclude-type=efivarfs"
alias reboot="sudo reboot"
alias shutdown="sudo shutdown now"
alias xbl="brightnessctl --device=intel_backlight set "
## Apps
alias cal="cal -3 -m --color=auto"
alias dunres="killall -e .dunst-wrapped & sleep 1; dunstify "hello!" &"
alias em="emacs -nw"
alias lg="lazygit"
alias n="nvim"
alias n.="nvim ."
alias yt-dlp="yt-dlp -f bestvideo[height=1080][ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
alias y="yazi"
## Git
alias gc="git clone"
## Stow
alias stow="stow ."
alias stowa="stow . --adopt"
# FZF
eval "$(fzf --bash)"
# Zoxide
eval "$(zoxide init bash)"