mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
nushell: add some aliases
This commit is contained in:
parent
01c8bfce80
commit
802a38f61b
3 changed files with 7 additions and 28 deletions
|
|
@ -46,36 +46,23 @@ alias g = glimpse --interactive -o both -f llm.md
|
||||||
def gg [] {
|
def gg [] {
|
||||||
open llm.md | save -r /dev/stdout | ^xclip -sel c
|
open llm.md | save -r /dev/stdout | ^xclip -sel c
|
||||||
}
|
}
|
||||||
alias rn = yazi
|
|
||||||
|
|
||||||
# Zoxide init
|
|
||||||
#^zoxide init nushell | save --force ~/.config/nushell/zoxide.nu
|
|
||||||
#source ~/.config/nushell/zoxide.nu
|
|
||||||
|
|
||||||
alias c = clear
|
alias c = clear
|
||||||
alias e = exa
|
alias e = exa
|
||||||
alias el = exa -la
|
alias ea = exa -a
|
||||||
alias l = ls -a
|
alias ela = exa -la
|
||||||
alias ll = ls -la
|
alias l = ls
|
||||||
alias cl = c; l
|
alias la = ls -a
|
||||||
|
alias lal = ls -la
|
||||||
alias ap = cd ~/personal
|
|
||||||
alias ad = cd ~/Downloads
|
|
||||||
alias ab = cd ~/books
|
|
||||||
alias a = cd ~
|
|
||||||
alias ah = cd ~/dotfiles/hosts/thegeneralist
|
|
||||||
alias ai3 = nvim /home/thegeneralist/dotfiles/hosts/thegeneralist/dotfiles/i3/config
|
|
||||||
# alias rb = sudo nixos-rebuild switch --flake ~/dotfiles#thegeneralist
|
|
||||||
alias rb = nh os switch . -v -- --show-trace --verbose
|
|
||||||
|
|
||||||
def greeting [] {
|
def greeting [] {
|
||||||
let quotes = [
|
let quotes = [
|
||||||
"What is impossible for you is not impossible for me."
|
"What is impossible for you is not impossible for me."
|
||||||
"Why do we fall, Master Wayne? So that we can learn to pick ourselves up. - Alfred Pennyworth"
|
"Why do we fall, Master Wayne? So that we can learn to pick ourselves up. - Alfred Pennyworth"
|
||||||
"Endure, Master Wayne. Take it. They’ll hate you for it, but that’s the point of Batman. He can be the outcast. He can make the choice… that no one else can make. The right choice. - Alfred Pennyworth"
|
"Endure, Master Wayne. Take it. They’ll hate you for it, but that’s the point of Batman. He can be the outcast. He can make the choice… that no one else can make. The right choice. - Alfred Pennyworth"
|
||||||
"— I never said thank you. — And you will never have to."
|
"— I never said thank you.\n— And you will never have to."
|
||||||
"A hero can be anyone, even a man doing something as simple and reassuring as putting a coat on a young boy's shoulders to let him know that the world hadn't ended. - Batman"
|
"A hero can be anyone, even a man doing something as simple and reassuring as putting a coat on a young boy's shoulders to let him know that the world hadn't ended. - Batman"
|
||||||
"— Come with me. Save yourself. You don't owe these ppl anymore, you've given them everything.\n —Not everything. Not yet."
|
"— Come with me. Save yourself. You don't owe these ppl anymore, you've given them everything.\n— Not everything. Not yet."
|
||||||
"The night is always darkest before the dawn, but I promise you, the dawn is coming. - Harvey Dent"
|
"The night is always darkest before the dawn, but I promise you, the dawn is coming. - Harvey Dent"
|
||||||
"It's not who you are underneath, but what you do that defines you. - Batman"
|
"It's not who you are underneath, but what you do that defines you. - Batman"
|
||||||
"The idea was to be a symbol. Batman... could be anybody. That was the point. - Bruce Wayne"
|
"The idea was to be a symbol. Batman... could be anybody. That was the point. - Bruce Wayne"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
readFile
|
readFile
|
||||||
getExe
|
getExe
|
||||||
mkAfter
|
|
||||||
mkIf
|
mkIf
|
||||||
optionalAttrs
|
optionalAttrs
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,6 @@ $env.ENV_CONVERSIONS.PATH = {
|
||||||
$env.LS_COLORS = (open ~/.config/nushell/ls_colors.txt)
|
$env.LS_COLORS = (open ~/.config/nushell/ls_colors.txt)
|
||||||
|
|
||||||
source ~/.config/nushell/zoxide.nu
|
source ~/.config/nushell/zoxide.nu
|
||||||
# NVM
|
|
||||||
# source ("/Users/thegeneralist/.nvm/" | path join "nvm.sh")
|
|
||||||
|
|
||||||
# GPG TTY
|
|
||||||
# $env.GPG_TTY = (tty)
|
|
||||||
|
|
||||||
# Extra PATHs
|
# Extra PATHs
|
||||||
# $env.PATH = [
|
# $env.PATH = [
|
||||||
|
|
@ -37,6 +32,4 @@ source ~/.config/nushell/zoxide.nu
|
||||||
# # "/usr/local/go/bin"
|
# # "/usr/local/go/bin"
|
||||||
# # ($env.HOME | path join "go/bin")
|
# # ($env.HOME | path join "go/bin")
|
||||||
# # ($env.HOME | path join ".npm-packages/bin")
|
# # ($env.HOME | path join ".npm-packages/bin")
|
||||||
# # ($env.HOME | path join ".Android/Sdk/platform-tools")
|
|
||||||
# # ($env.HOME | path join ".Android/Sdk/emulator")
|
|
||||||
# ] ++ $env.PATH
|
# ] ++ $env.PATH
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue