Removed nushell
This commit is contained in:
parent
30c02876e8
commit
2569e705ed
@ -1,51 +0,0 @@
|
||||
# Git
|
||||
alias g = git
|
||||
alias gc = git clone
|
||||
alias gd = git diff
|
||||
alias gl = git log --oneline
|
||||
alias gp = git pull
|
||||
alias gs = git status
|
||||
alias home = git $"--git-dir=($env.HOME)/.home/" $"--work-tree=($env.HOME)"
|
||||
|
||||
# Go
|
||||
alias gob = go build -v
|
||||
alias got = go test -v
|
||||
|
||||
# Hyperfine
|
||||
alias bench = hyperfine --shell=none
|
||||
|
||||
# Neovim
|
||||
alias e = nvim
|
||||
alias n = nvim
|
||||
|
||||
# Pacman
|
||||
alias p = pacman
|
||||
alias pi = sudo pacman -S
|
||||
alias pr = sudo pacman -Rs
|
||||
alias pu = sudo pacman -Syu
|
||||
|
||||
# Tmux
|
||||
alias t = tmux
|
||||
alias ta = tmux attach
|
||||
alias td = tmux detach
|
||||
alias tl = tmux ls
|
||||
alias tk = tmux kill-server
|
||||
|
||||
# Systemctl
|
||||
alias s = systemctl
|
||||
alias s+ = systemctl start
|
||||
alias s- = systemctl stop
|
||||
alias sl = systemctl list-units --type=service --state=running
|
||||
alias sld = systemctl list-unit-files --type=service --state=disabled
|
||||
alias sle = systemctl list-unit-files --type=service --state=enabled
|
||||
alias slt = systemctl list-timers
|
||||
alias ss = systemctl status
|
||||
|
||||
# ...
|
||||
alias cdp = cd ~/projects
|
||||
alias cls = clear
|
||||
alias hex = hexdump -C
|
||||
alias ll = ls -la
|
||||
|
||||
# Close all windows
|
||||
def closeall [] { wmctrl -l | awk '{print $1}' | xargs -rn1 wmctrl -ic }
|
@ -1,7 +0,0 @@
|
||||
source ~/.config/nushell/prompt.nu
|
||||
source ~/.config/nushell/alias.nu
|
||||
|
||||
$env.config.show_banner = false
|
||||
$env.config.history.file_format = "sqlite"
|
||||
$env.config.history.isolation = true
|
||||
$env.config.hooks.pre_prompt = [{print --no-newline $"(ansi title)(whoami)@(hostname)(ansi st)"}]
|
@ -1,3 +0,0 @@
|
||||
$env.EDITOR = "nvim"
|
||||
$env.GOPATH = $"($env.HOME)/.go"
|
||||
$env.LANG = "en_US.UTF-8"
|
@ -1,27 +0,0 @@
|
||||
def prompt [] {
|
||||
mut home = ""
|
||||
|
||||
try {
|
||||
if $nu.os-info.name == "windows" {
|
||||
$home = $env.USERPROFILE
|
||||
} else {
|
||||
$home = $env.HOME
|
||||
}
|
||||
}
|
||||
|
||||
let dir = ([
|
||||
($env.PWD | str substring 0..($home | str length) | str replace $home "~"),
|
||||
($env.PWD | str substring ($home | str length)..)
|
||||
] | str join)
|
||||
|
||||
let path_color = (if (is-admin) { ansi red_bold } else { ansi green_bold })
|
||||
let separator_color = (if (is-admin) { ansi light_red_bold } else { ansi light_green_bold })
|
||||
let path_segment = $"($path_color)($dir)"
|
||||
|
||||
$path_segment | str replace --all (char path_sep) $"($separator_color)/($path_color)"
|
||||
}
|
||||
|
||||
$env.PROMPT_COMMAND = {|| prompt}
|
||||
$env.PROMPT_COMMAND_RIGHT = ""
|
||||
$env.PROMPT_INDICATOR = " "
|
||||
$env.PROMPT_MULTILINE_INDICATOR = {|| "::: " }
|
Loading…
Reference in New Issue
Block a user