blob: 82f9d8cd7c3f3ff53737154cad81cb93307474bd (
plain)
| 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
 | # Remove fish greeting
set fish_greeting
# Set terminal/visual editor to nvim
set EDITOR 'nvim'
set VISUAL 'nvim'
fish_add_path ~/.cargo/bin
fish_add_path ~/.local/bin
# This is used so the pgp keys on my Yubikey can be used for ssh etc
eval (ssh-agent -c)
gpg-agent --enable-ssh-support
set SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket)
set GPG_TTY (tty)
export GPG_TTY=(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
# Switch gpg to backup keys
# Main key
alias switchto1='gpg-connect-agent "20576321" "learn --force" /bye'
# Backup Key
alias switchto2='gpg-connect-agent "20576243" "learn --force" /bye'
# exa > ls
alias ls='exa -al --group-directories-first --icons --color=always'
alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage'
# attach to tmux session
alias attach='tmux -f ~/tmux.conf new-session -A -s terminal' 
# hö
alias ed='nvim'
# Colors
set fish_color_normal white
set fish_color_autosuggestion '#555555'
set fish_color_command white
set fish_color_error '#ff6c6b'
set fish_color_param '#777777'
# PATH
set PATH "$PATH:/home/max/.local/bin"
clear 
# Init starship
starship init fish | source  
 |