mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
fish: add some helper functions
This commit is contained in:
parent
668c451b55
commit
7bea68f38a
4 changed files with 16 additions and 1 deletions
38
config/fish/conf.d/aliases.fish
Normal file
38
config/fish/conf.d/aliases.fish
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
alias cls clear
|
||||
alias cp "cp -r"
|
||||
alias mkdir "mkdir -p"
|
||||
alias free "free -h"
|
||||
alias df "df -h"
|
||||
alias du "du -h"
|
||||
alias chmox "chmod +x"
|
||||
alias ":q" exit
|
||||
|
||||
alias g git
|
||||
alias d docker
|
||||
alias dcm "docker compose"
|
||||
|
||||
alias ... "cd ../.."
|
||||
alias .3 "cd ../../.."
|
||||
|
||||
alias killbt "rfkill block bluetooth"
|
||||
alias unkillbt "rfkill unblock bluetooth"
|
||||
|
||||
if type -q hledger; alias f hledger; end
|
||||
if type -q jj; alias j jj; end
|
||||
if type -q todo.sh; alias t todo.sh; end
|
||||
|
||||
if type -q nvim
|
||||
alias vim nvim
|
||||
alias e vim
|
||||
end
|
||||
|
||||
if type -q eza
|
||||
alias ls "eza -l"
|
||||
alias la "ls -a"
|
||||
alias ll ls
|
||||
end
|
||||
|
||||
if test $TERM = "xterm-kitty"
|
||||
alias ssh "kitty +kitten ssh"
|
||||
alias icat "kitty +kitten icat"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue