update nix config
This commit is contained in:
parent
f610209aff
commit
07b7f0cc1f
34 changed files with 388 additions and 240 deletions
|
@ -1,7 +1,7 @@
|
|||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
#dont put duplicate lines or lines starting with space in the history
|
||||
# dont put duplicate lines or lines starting with space in the history
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
HISTFILESIZE=-1
|
||||
|
@ -12,6 +12,8 @@ if [ -f ~/.bash_local ]; then
|
|||
. ~/.bash_local
|
||||
fi
|
||||
|
||||
# show tldr on terminal start
|
||||
# tldr --quiet $(tldr --quiet --list | shuf -n1)
|
||||
|
||||
PS1="\[\e[32m\][\[\e[m\]\[\e[32m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[32m\]\h\[\e[m\]\[\e[32m\]]\[\e[m\]\[\e[34m\]\W\[\e[m\]\[\e[36m\]\\$\[\e[m\] "
|
||||
if [ ! -z "$SSH_CLIENT" ]
|
||||
|
|
7
dotfiles/bash_files/all_hosts/git
Normal file
7
dotfiles/bash_files/all_hosts/git
Normal file
|
@ -0,0 +1,7 @@
|
|||
alias g='git'
|
||||
alias ga='git add'
|
||||
alias gc='git commit'
|
||||
alias gs='git status'
|
||||
alias gd='git diff'
|
||||
alias lg='lazygit'
|
||||
alias gtop="cd \$(git rev-parse --show-toplevel)" # go to top level of git repo
|
23
dotfiles/bash_files/all_hosts/global
Normal file
23
dotfiles/bash_files/all_hosts/global
Normal file
|
@ -0,0 +1,23 @@
|
|||
alias cp="cp -i" # confirm before overwriting something
|
||||
alias df='df -h' # human-readable sizes
|
||||
alias free='free -m' # show sizes in MB
|
||||
alias du='du -h'
|
||||
alias diff='diff --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias ip='ip -color=auto'
|
||||
alias ls='ls --color=auto'
|
||||
alias vm='mv'
|
||||
alias cat='bat -pp'
|
||||
alias man='batman'
|
||||
alias ll="ls -lhA"
|
||||
alias sl='ls'
|
||||
alias -- -='cd -'
|
||||
|
||||
alias caddy_reload="docker exec -it caddy sh -c 'cd /etc/caddy && caddy reload'"
|
||||
|
||||
mkcd() { mkdir -p "$@" && cd "$@"; }
|
||||
rnd() { echo $((RANDOM%10000+1000)); }
|
||||
|
||||
### NIX ###
|
||||
alias rebuild="sudo nixos-rebuild switch --flake ~/nixos#$NIXHOST"
|
||||
alias search="nix search nixpkgs"
|
|
@ -4,9 +4,7 @@ mp(){
|
|||
}
|
||||
|
||||
cs(){
|
||||
# cp -l fullpath fullpath/Documents/cheatsheet
|
||||
# path=~/Documents/cheatsheet
|
||||
path=/solid/dir/reference/cheatsheet/
|
||||
path=~/Documents/cheatsheet
|
||||
if [[ -z "$1" ]]; then
|
||||
ls $path
|
||||
else
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
alias ctllist="systemctl --type=service"
|
||||
alias esc='setxkbmap -option "caps:swapescape"'
|
||||
alias checkip="curl ipinfo.io"
|
||||
alias hold='hold=$(pwd)'
|
||||
|
||||
alias ollama_up="./scripts/VM/VMmanager.sh macvtap; sudo virsh start ollama_vm"
|
||||
|
||||
alias ollama_up='sh ~/scripts/VM/VMmanager.sh macvtap; sudo virsh start ollama_vm; ssh remote "/bin/bash /scripts/remote_commands.sh init_ollama"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue