-
Notifications
You must be signed in to change notification settings - Fork 10
/
.profile
executable file
·55 lines (50 loc) · 2.02 KB
/
.profile
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
# Environment.
export TERM="wezterm"
export TERMINAL=$TERM
export COLORTERM=$TERM
export MANPAGER='nvim +Man!'
export MANWIDTH=999
export EDITOR="nvim"
export VISUAL=$EDITOR
export JULIA_NUM_THREADS=8
export BAT_THEME="base16-256"
export PATH="$HOME/.local/bin/:$PATH"
# Dotfiles.
alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias lazygit-dotfiles='lazygit --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias lgd='lazygit-dotfiles'
# Utils.
alias ls='eza --grid --long --header --no-permissions --no-time --across'
alias pdf="nohup zathura"
alias cat="bat"
alias rm="trash --trash-dir ~/.trash" # This one has saved me a lot of heartache...
alias clear-trash="$(which rm) -r ~/.trash/files/"
alias tssh='TERM=xterm-256color ssh'
alias check-root="sudo dua -i /home i /"
alias c="clear"
alias z="zathura"
alias picom-restart="pkill picom;\
sleep 0.01;\
picom -b"
# Peripherals.
alias setup-keyboard="~/.scripts/utils/setup_keyboard.sh"
alias setup-monitors="feh --bg-fill \$HOME/.wallpapers/alena-aenami-horizon-1k_upscaled.jpg
nice -n 19 betterlockscreen -u \"\$HOME/.wallpapers/tokyo-night-space_upscaled.png\" --display 1"
# Dev.
alias lg="lazygit"
alias lzd="lazydocker"
alias nh="nvim ."
alias gl="git log --oneline --decorate --graph"
alias tmux-workspace="~/.config/tmux/utils/create_workspace.sh"
alias tw="tmux-workspace"
alias tks="tmux kill-session"
# Nix aliases.
alias nix-build="sudo nixos-rebuild switch --flake \$HOME/.nixos#default --impure && notify-send 'NixOS' 'Build complete.' || notify-send --urgency=critical 'NixOS' 'Build failed.'"
alias nix-update="sudo nix-channel --update && notify-send 'NixOS' 'Channels updated.' || notify-send --urgency=critical 'NixOS' 'Upgrade failed.'"
alias nix-clear="sudo nix-collect-garbage --delete-older-than"
alias nix-python-activate="LD_LIBRARY_PATH=\$(nix eval --raw nixpkgs#stdenv.cc.cc.lib)/lib \
nix-shell \
-p python3 python3Packages.virtualenv \
--command 'virtualenv venv; source venv/bin/activate; clear; fish;'\
"
alias npa="nix-python-activate"