mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 16:10:45 +01:00
unify aliases
This commit is contained in:
parent
db4f9abc9d
commit
a36da6fe5e
4 changed files with 20 additions and 34 deletions
17
programs/aliases.nix
Normal file
17
programs/aliases.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"vim" = "hx";
|
||||
"ls" = "exa --all --icons";
|
||||
"dig" = "doggo";
|
||||
|
||||
"glol" = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'";
|
||||
"ghrvw" = "gh repo view --web";
|
||||
|
||||
"opr" = "op run --env-file=.env.1password --";
|
||||
"dr" = "doppler run --";
|
||||
|
||||
"dequarantine" = "xattr -d com.apple.quarantine";
|
||||
|
||||
"bcpa" = "brew cleanup --prune=all";
|
||||
"puil" = "pnpm update --interactive --latest";
|
||||
"pip-upgrade-all" = "pip --disable-pip-version-check list --outdated --format=json | python -c \"import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))\" | xargs -n1 pip install -U";
|
||||
}
|
||||
|
|
@ -1,23 +1,7 @@
|
|||
{...}: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAbbrs = {
|
||||
"vim" = "hx";
|
||||
"ls" = "exa --all --icons";
|
||||
"dig" = "doggo";
|
||||
|
||||
"glol" = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'";
|
||||
"ghrvw" = "gh repo view --web";
|
||||
|
||||
"opr" = "op run --env-file=.env.1password --";
|
||||
"dr" = "doppler run --";
|
||||
|
||||
"dequarantine" = "xattr -d com.apple.quarantine";
|
||||
|
||||
"bcpa" = "brew cleanup --prune=all";
|
||||
"puil" = "pnpm update --interactive --latest";
|
||||
"pip-upgrade-all" = "pip --disable-pip-version-check list --outdated --format=json | python -c \"import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))\" | xargs -n1 pip install -U";
|
||||
};
|
||||
shellAbbrs = import ./aliases.nix;
|
||||
};
|
||||
|
||||
home.file.".config/fish/conf.d" = {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
initExtraBeforeCompInit = builtins.readFile ./zsh/initExtraBeforeCompInit.zsh;
|
||||
initExtra = builtins.readFile ./zsh/initExtra.zsh;
|
||||
|
||||
shellAliases = import ./aliases.nix;
|
||||
|
||||
localVariables = {
|
||||
vivid_theme = "catppuccin-macchiato";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -26,23 +26,6 @@ zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
|||
|
||||
zstyle ':completion:*' group-name \'\'
|
||||
|
||||
# aliases
|
||||
alias vim="hx"
|
||||
alias ls="exa --all --icons"
|
||||
alias dig="doggo"
|
||||
|
||||
alias glol="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'"
|
||||
alias ghrvw="gh repo view --web"
|
||||
|
||||
alias opr="op run --env-file=.env.1password --"
|
||||
alias dr="doppler run --"
|
||||
|
||||
alias dequarantine="xattr -d com.apple.quarantine"
|
||||
|
||||
alias bcpa="brew cleanup --prune=all"
|
||||
alias puil="pnpm update --interactive --latest"
|
||||
alias pip-upgrade-all="pip --disable-pip-version-check list --outdated --format=json | python -c \"import json, sys; print('\n'.join([x['name'] for x in json.load(sys.stdin)]))\" | xargs -n1 pip install -U"
|
||||
|
||||
function take() {
|
||||
mkdir "$1"
|
||||
cd "$1" || return 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue