mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-13 23:51:34 +09:00
Compare commits
3 Commits
8d34b0f472
...
45830fad57
| Author | SHA1 | Date | |
|---|---|---|---|
| 45830fad57 | |||
| 7a7e38806d | |||
| f8d47693c9 |
@ -4,27 +4,93 @@ end
|
||||
|
||||
set fish_greeting
|
||||
|
||||
set VETHER_IP $(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
|
||||
export DISPLAY=$VETHER_IP:10.0
|
||||
# Format man pages
|
||||
set -x MANROFFOPT "-c"
|
||||
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
# Set settings for https://github.com/franciscolourenco/done
|
||||
set -U __done_min_cmd_duration 10000
|
||||
set -U __done_notification_urgency_level low
|
||||
|
||||
## Environment setup
|
||||
# Apply .profile: use this to put fish compatible .profile stuff in
|
||||
if test -f ~/.fish_profile
|
||||
source ~/.fish_profile
|
||||
end
|
||||
|
||||
# Add ~/.local/bin to PATH
|
||||
if test -d ~/.local/bin
|
||||
if not contains -- ~/.local/bin $PATH
|
||||
set -p PATH ~/.local/bin
|
||||
end
|
||||
end
|
||||
|
||||
## Functions
|
||||
# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
|
||||
function __history_previous_command
|
||||
switch (commandline -t)
|
||||
case "!"
|
||||
commandline -t $history[1]; commandline -f repaint
|
||||
case "*"
|
||||
commandline -i !
|
||||
end
|
||||
end
|
||||
|
||||
function __history_previous_command_arguments
|
||||
switch (commandline -t)
|
||||
case "!"
|
||||
commandline -t ""
|
||||
commandline -f history-token-search-backward
|
||||
case "*"
|
||||
commandline -i '$'
|
||||
end
|
||||
end
|
||||
|
||||
if [ "$fish_key_bindings" = fish_vi_key_bindings ];
|
||||
bind -Minsert ! __history_previous_command
|
||||
bind -Minsert '$' __history_previous_command_arguments
|
||||
else
|
||||
bind ! __history_previous_command
|
||||
bind '$' __history_previous_command_arguments
|
||||
end
|
||||
|
||||
# Fish command history
|
||||
function history
|
||||
builtin history --show-time='%F %T '
|
||||
end
|
||||
|
||||
## Aliases
|
||||
alias ls='eza -al --color=always --group-directories-first --icons' # preferred listing
|
||||
alias la='eza -a --color=always --group-directories-first --icons' # all files and dirs
|
||||
alias ll='eza -l --color=always --group-directories-first --icons' # long format
|
||||
alias lt='eza -aT --color=always --group-directories-first --icons' # tree listing
|
||||
alias l.="eza -a | grep -e '^\.'" # show only dotfiles
|
||||
|
||||
alias big="expac -H M '%m\t%n' | sort -h | nl" # Sort installed packages according to size in MB
|
||||
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages
|
||||
#pacman unlock
|
||||
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
|
||||
|
||||
# Get fastest mirrors
|
||||
alias mirror="sudo cachyos-rate-mirrors"
|
||||
# Cleanup orphaned packages
|
||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'
|
||||
# Recent installed packages
|
||||
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"
|
||||
|
||||
# emacs
|
||||
alias emupgrade="~/.emacs.d/bin/doom upgrade"
|
||||
alias emsync="~/.emacs.d/bin/doom sync"
|
||||
alias emd="emacs --daemon"
|
||||
alias emdk="emacsclient --eval '(kill-emacs)'"
|
||||
alias em="emacsclient -c -a 'emacs'"
|
||||
alias emt="emacsclient -c -a 'emacs -nw'"
|
||||
alias emtangle="emacs --batch -eval \"(require 'org)\" --eval '(org-babel-tangle-file \"~/.config/emacs/emacs.org\")'"
|
||||
|
||||
#neovim to vi
|
||||
alias vi=nvim
|
||||
alias vimdiff="nvim -d"
|
||||
#alias cat=bat
|
||||
#pacman unlock
|
||||
alias paruunlock="sudo rm /var/lib/pacman/db.lck"
|
||||
alias cat=bat
|
||||
|
||||
#grub update
|
||||
alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
#youtube-dl
|
||||
alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
||||
#gpg for future uses
|
||||
#verify signature for isos
|
||||
#alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify"
|
||||
@ -33,21 +99,10 @@ alias ytv-best="youtube-dl -f bestvideo+bestaudio "
|
||||
#alias 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 startsv="ssh odroid startsv"
|
||||
alias stopsv="ssh odroid stopsv"
|
||||
alias gpulls="pushd ~/.config/emacs && git pull && pushd ~/org && git pull && popd && popd"
|
||||
|
||||
# Changing "ls" to "exa"
|
||||
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
|
||||
alias la='exa -a --color=always --group-directories-first' # all files and dirs
|
||||
alias ll='exa -l --color=always --group-directories-first' # long format
|
||||
alias lt='exa -aT --color=always --group-directories-first' # tree listing
|
||||
alias l.='exa -a | egrep "^\."'
|
||||
|
||||
#figlet -w 100 "$hostname"
|
||||
export PYTHONSTARTUP=/home/jaeus/scripts/my_imports.py
|
||||
|
||||
starship init fish | source
|
||||
|
||||
cat ~/.cache/wal/sequences &
|
||||
#atuin init fish | source
|
||||
atuin init fish | source
|
||||
|
||||
@ -1,30 +1,28 @@
|
||||
#!/bin/sh
|
||||
paru
|
||||
paru -S stow trayer --noconfirm
|
||||
#!/bin/bash
|
||||
|
||||
# config file handling
|
||||
rm ~/.config/polybar/config
|
||||
rm ~/.zshrc ~/.bashrc ~/.xmonad/xmonad.hs
|
||||
rm -rf ~/.config/alacritty ~/.xmonad/scripts
|
||||
# essential packages
|
||||
paru -S eza --noconfirm
|
||||
|
||||
# clone config
|
||||
git clone https://github.com/JaeUs3792/dotfiles ~/.dotfiles
|
||||
|
||||
paru -S stow --noconfirm
|
||||
cd ~/.dotfiles
|
||||
stow .
|
||||
|
||||
# korean input
|
||||
paru -S ibus-hangul
|
||||
|
||||
#ZSH
|
||||
paru -S zsh starship --noconfirm
|
||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc
|
||||
|
||||
# NUSHELL
|
||||
#paru -S nushell
|
||||
#nu ~/scripts/init_script_nushell.nu
|
||||
#echo "Changing Shell to nushell"
|
||||
#chsh -s /bin/nu # change shell
|
||||
# fish
|
||||
paru -S fish starship autin bat --noconfirm
|
||||
|
||||
# FISH
|
||||
#paru -S fish starship
|
||||
#chsh -s /bin/fish
|
||||
|
||||
# neovim
|
||||
paru -S neovim --noconfirm
|
||||
@ -44,26 +42,29 @@ TMUX_PLUGIN_MANAGER_PATH=~/.config/tmux/plugins/tpm ~/.tmux/plugins/tpm/scripts/
|
||||
TMUX_PLUGIN_MANAGER_PATH=~/.config/tmux/plugins/tpm ~/.tmux/plugins/tpm/bin/update_plugins all
|
||||
|
||||
# font
|
||||
paru -S ttf-firacode-nerd ttf-nanum ttf-mononoki-nerd --noconfirm
|
||||
|
||||
# hangul
|
||||
paru -S fcitx-hangul fcitx-configtool --noconfirm
|
||||
|
||||
# enpass
|
||||
#paru -S enpass --noconfirm
|
||||
#paru -S bitwarden --noconfirm
|
||||
#paru -S green-tunnel --noconfirm
|
||||
|
||||
#emacs
|
||||
paru -S ripgrep emacs --noconfirm
|
||||
paru -S texlive-most texlive-lang --noconfirm
|
||||
paru -S jupyterlab --noconfirm
|
||||
paru -S zathura zathura-cb zathura-pdf-mupdf
|
||||
paru -S ttf-firacode-nerd ttf-mononoki-nerd otf-comicshanns-nerd ttf-times-new-roman ttf-nanum noto-fonts-emoji ttf-symbola noto-fonts-cjk --noconfirm
|
||||
|
||||
#syncthing
|
||||
paru -S syncthing --noconfirm
|
||||
mkdir SyncThing
|
||||
sudo systemctl enable syncthing@jaeus.service
|
||||
sudo systemctl start syncthing@jaeus.service
|
||||
|
||||
# etc
|
||||
paru -S figlet --noconfirm
|
||||
# express vpn
|
||||
paru -S expressvpn-gui
|
||||
sudo systemctl enable expressvpn
|
||||
sudo systemctl start expressvpn
|
||||
|
||||
#emacs
|
||||
paru -S emacs --noconfirm
|
||||
paru -S texlive-basic texlive-langkorean --noconfirm
|
||||
paru -S jupyterlab --noconfirm
|
||||
paru -S zathura-pdf-mupdf
|
||||
|
||||
#verilator
|
||||
paru -S verilator
|
||||
|
||||
# trilium
|
||||
paru -S trilium-bin
|
||||
|
||||
# sourcegit
|
||||
paru -S sourcegit-bin
|
||||
3
scripts/questasim_install_libs.sh
Executable file
3
scripts/questasim_install_libs.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
yay -S python2-bin
|
||||
3
scripts/vivado_installlibs.sh
Executable file
3
scripts/vivado_installlibs.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
yay -S ncurses5-compat-libs libxcrypt-compat libpng12 lib32-libpng12 gtk3 inetutils xorg-xlsclients cpio
|
||||
Reference in New Issue
Block a user