configs/dotfiles/.zshrc-linux

36 lines
988 B
Plaintext
Raw Normal View History

2023-10-03 13:07:10 +00:00
# --- OH-MY-ZSH ---
export ZSH="$HOME/.oh-my-zsh"
2023-10-03 23:15:03 +00:00
ZSH_THEME="clean"
2023-10-03 13:07:10 +00:00
zstyle ':omz:update' mode auto
zstyle ':omz:update' frequency 7
plugins=(git)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
export EDITOR='nano'
# --- ALIAS ---
alias traceroute='traceroute -a -w 2'
alias ls="ls -lhs --color --group-directories-first"
alias lsa="ls -lhsa --color --group-directories-first"
alias gcs="git commit -S -m"
alias duf="docker compose down && docker compose up -d --build && docker compose logs -f"
hf() {
2023-10-03 13:13:36 +00:00
curl -F file=@$1 https://hardfiles.org
2023-10-03 13:07:10 +00:00
}
2023-10-03 23:15:03 +00:00
# Uncomment if on desktop
2023-10-03 13:07:10 +00:00
#hfs() {
2023-10-03 13:08:17 +00:00
# filename=$HOME/.scrot/$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 50 | head -n 1).png
2023-10-03 23:15:03 +00:00
# flameshot gui -p $filename
2023-10-03 13:07:10 +00:00
# hf $filename
#}
hft() {
2023-10-03 13:08:17 +00:00
filename=$HOME/.scrot/$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w 50 | head -n 1).txt
2023-10-03 13:07:10 +00:00
nano $filename
hf $filename
2023-10-03 23:15:03 +00:00
}
# Session Manager (Uncomment if desktop)
#if [[ ! ${DISPLAY} && ${XDG_VTNR} == 1 ]]; then
# exec tbsm
#fi