mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(fish): add some basic aliases
This commit is contained in:
@@ -2,6 +2,8 @@ if status is-interactive
|
|||||||
# Commands to run in interactive sessions can go here
|
# Commands to run in interactive sessions can go here
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# *** *** Configuration *** ***
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
|
|
||||||
@@ -11,8 +13,50 @@ source /usr/local/opt/asdf/libexec/asdf.fish
|
|||||||
# Neovim as default editor
|
# Neovim as default editor
|
||||||
set -U EDITOR nvim
|
set -U EDITOR nvim
|
||||||
|
|
||||||
|
# *** *** Aliases *** ***
|
||||||
|
|
||||||
|
# Fish
|
||||||
|
alias reload 'exec fish'
|
||||||
|
|
||||||
|
# Folders/Lists
|
||||||
|
alias ... 'cd ../..'
|
||||||
|
alias cd.. 'cd ..'
|
||||||
|
alias ls 'exa --git --group-directories-first --icons'
|
||||||
|
alias ll 'exa -l --git --group-directories-first --icons'
|
||||||
|
alias lla 'll -a'
|
||||||
|
alias mkdir 'mkdir -p'
|
||||||
|
|
||||||
|
# Git
|
||||||
|
alias gl 'git pull'
|
||||||
|
alias glr 'git pull --rebase'
|
||||||
|
alias glu 'git config user.name "Stefan Imhoff" && git config user.email "stefan@imhoff.name";'
|
||||||
|
alias glx 'git config user.name "Stefan Imhoff" && git config user.email "stefan.imhoff@xing.com";'
|
||||||
|
alias gp 'git push'
|
||||||
|
alias gpf 'git push --force-with-lease'
|
||||||
|
alias gw 'git whatchanged'
|
||||||
|
alias gwp 'git whatchanged -p'
|
||||||
|
alias lg 'lazygit'
|
||||||
|
|
||||||
|
# Vim/Neovim
|
||||||
alias v "vim"
|
alias v "vim"
|
||||||
|
|
||||||
if type nvim > /dev/null 2>&1
|
if type nvim > /dev/null 2>&1
|
||||||
alias vim 'nvim'
|
alias vim 'nvim'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TMUX
|
||||||
|
alias t 'tmux'
|
||||||
|
alias mux 'tmuxinator'
|
||||||
|
alias ms 'mux start'
|
||||||
|
|
||||||
|
# Bat
|
||||||
|
alias cat 'bat'
|
||||||
|
|
||||||
|
# Dotfiles Folder
|
||||||
|
alias dotfiles 'cd ~/.dotfiles'
|
||||||
|
|
||||||
|
# iCloud
|
||||||
|
alias icloud "cd ~/Library/Mobile\ Documents/com~apple~CloudDocs"
|
||||||
|
#
|
||||||
|
# Clear the screen
|
||||||
|
alias c "clear"
|
||||||
|
|||||||
Reference in New Issue
Block a user