Updated config
This commit is contained in:
parent
b4eece087b
commit
20799af627
9 changed files with 283 additions and 22 deletions
|
@ -50,9 +50,14 @@ if command -q lsof
|
|||
alias udp "lsof -PniUDP"
|
||||
end
|
||||
|
||||
# MPV
|
||||
if command -q mpv
|
||||
alias music "mpv music --shuffle --no-video"
|
||||
end
|
||||
|
||||
# Neovim
|
||||
if command -q $EDITOR
|
||||
alias e $EDITOR
|
||||
if command -q nvim
|
||||
alias e nvim
|
||||
end
|
||||
|
||||
# Pacman
|
||||
|
@ -107,11 +112,13 @@ if command -q tmux
|
|||
end
|
||||
|
||||
# ...
|
||||
alias align "column -t -o ' '"
|
||||
alias cfg "config"
|
||||
alias cls "clear"
|
||||
alias debug "blinkenlights"
|
||||
alias disasm "llvm-objdump --disassembler-color=on --x86-asm-syntax=intel -d"
|
||||
alias ff "fastfetch"
|
||||
alias fn "rg --files | rg"
|
||||
alias hex "hexdump -C"
|
||||
alias log "journalctl"
|
||||
alias utc "date -u +'%Y-%m-%dT%H:%M:%SZ'"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Set environment variables from .env
|
||||
while read -la line
|
||||
set -l keyval (string split -m1 "=" $line)
|
||||
set -l key (string trim $keyval[1])
|
||||
set -l value (string trim $keyval[2..])
|
||||
set -l value (eval echo $value)
|
||||
set -xg $key $value
|
||||
end < ~/.env
|
||||
|
||||
# Interactive mode aliases
|
||||
if status is-interactive
|
||||
# Aliases
|
||||
source $HOME/.config/fish/alias.fish
|
||||
|
||||
# Set environment variables from .env
|
||||
while read -la line
|
||||
set -l keyval (string split -m1 "=" $line)
|
||||
set -l key (string trim $keyval[1])
|
||||
set -l value (string trim $keyval[2..])
|
||||
set -l value (eval echo $value)
|
||||
set -xg $key $value
|
||||
end < ~/.env
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue