mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-13 23:51:34 +09:00
SHELL : fish->zsh
This commit is contained in:
34
.zshrc
34
.zshrc
@ -1,25 +1,21 @@
|
|||||||
export ZSH="/home/jaeus/.oh-my-zsh"
|
export ZSH="/home/jaeus/.oh-my-zsh"
|
||||||
ZSH_THEME="agnoster"
|
#ZSH_THEME="agnoster"
|
||||||
#plugins=(git)
|
#plugins=(git)
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
prompt_context(){}
|
prompt_context(){}
|
||||||
source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
source $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
|
||||||
##WSL2
|
|
||||||
source ~/scripts/wsl_get_display.sh
|
|
||||||
|
|
||||||
# emacs
|
# emacs
|
||||||
alias emd="emacs --daemon"
|
alias emd="emacs --daemon"
|
||||||
alias emdk="emacsclient --eval '(kill-emacs)'"
|
alias emdk="emacsclient --eval '(kill-emacs)'"
|
||||||
alias em="emacsclient -c -a 'emacs'"
|
alias em="emacsclient -c -a 'emacs'"
|
||||||
alias emt="emacsclient -c -a 'emacs -nw'"
|
alias emt="emacsclient -c -a 'emacs -nw'"
|
||||||
alias emtangle="emacs --batch -eval \"(require 'org)\" --eval '(org-babel-tangle-file \"~/.config/emacs/emacs.org\")'"
|
alias emtangle="emacs --batch -eval \"(require 'org)\" --eval '(org-babel-tangle-file \"~/.config/emacs/emacs.org\")'"
|
||||||
alias startsv="ssh odroid startsv"
|
# neovim
|
||||||
alias stopsv="ssh odroid stopsv"
|
|
||||||
alias gpulls="pushd ~/.config/emacs && git pull && pushd ~/org && git pull && popd && popd"
|
|
||||||
#neovim to vi
|
|
||||||
alias vi=nvim
|
alias vi=nvim
|
||||||
|
alias vimdiff="nvim -d"
|
||||||
|
export EDITOR=nvim
|
||||||
#pacman unlock
|
#pacman unlock
|
||||||
alias paruunlock="sudo rm /var/lib/pacman/db.lck"
|
alias paruunlock="sudo rm /var/lib/pacman/db.lck"
|
||||||
#grub update
|
#grub update
|
||||||
@ -35,15 +31,21 @@ alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
|||||||
#alias fix-gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
|
#alias fix-gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
|
||||||
#alias fix-key="[ -d ~/.gnupg ] || mkdir ~/.gnupg ; cp /etc/pacman.d/gnupg/gpg.conf ~/.gnupg/ ; echo 'done'"
|
#alias fix-key="[ -d ~/.gnupg ] || mkdir ~/.gnupg ; cp /etc/pacman.d/gnupg/gpg.conf ~/.gnupg/ ; echo 'done'"
|
||||||
|
|
||||||
hostname=$(cat /etc/hostname)
|
# server on/off
|
||||||
figlet -w 100 "$hostname"
|
alias startsv="ssh odroid startsv"
|
||||||
|
alias stopsv="ssh odroid stopsv"
|
||||||
|
|
||||||
|
alias ls="exa -al --color=always --group-directories-first"
|
||||||
|
alias la="exa -a --color=always --group-directories-first"
|
||||||
|
alias ll="exa -l --color=always --group-directories-first"
|
||||||
|
alias lt="exa -aT --color=always --group-directories-first"
|
||||||
|
alias l.='exa -a | egrep "^\."'
|
||||||
|
|
||||||
#cat ~/.cache/wal/sequences &
|
#cat ~/.cache/wal/sequences &
|
||||||
|
|
||||||
# Fire it up for WSL2
|
# WSL2
|
||||||
#VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
|
source ~/scripts/custom_env.sh
|
||||||
#export DISPLAY=$VETHER_IP:10.0
|
# python env
|
||||||
#export DISPLAY=192.168.144.1:10.0
|
|
||||||
#export EDITOR=nvim
|
|
||||||
|
|
||||||
export PYTHONSTARTUP=~/scripts/my_imports.py
|
export PYTHONSTARTUP=~/scripts/my_imports.py
|
||||||
|
|
||||||
|
eval "$(starship init zsh)"
|
||||||
|
|||||||
9
scripts/custom_env.sh
Executable file
9
scripts/custom_env.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# configurable parameter
|
||||||
|
JAEUS_ENV="WSL"
|
||||||
|
|
||||||
|
if [[ $JAEUS_ENV == "WSL" ]];then
|
||||||
|
VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
|
||||||
|
export DISPLAY=$VETHER_IP:10.0
|
||||||
|
fi
|
||||||
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
|
|
||||||
export DISPLAY=$VETHER_IP:10.0
|
|
||||||
Reference in New Issue
Block a user