Skip to content

Commit bc963e9

Browse files
committed
add mako and fish config
1 parent b823a16 commit bc963e9

File tree

2 files changed

+144
-0
lines changed

2 files changed

+144
-0
lines changed

fish/config.fish

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
### ADDING TO THE PATH
2+
# First line removes the path; second line sets it. Without the first line,
3+
# your path gets massive and fish becomes very slow.
4+
set -e fish_user_paths
5+
set -U fish_user_paths $HOME/.local/bin $HOME/Applications /var/lib/flatpak/exports/bin/ $fish_user_paths
6+
set -U XDG_CONFIG_HOME $HOME/.config
7+
set -U XDG_DATA_HOME $HOME/.local/share
8+
set -U XDG_STATE_HOME $HOME/.local/state
9+
set -U XDG_CACHE_HOME $HOME/.cache
10+
11+
### EXPORT ###
12+
set fish_greeting # Supresses fish's intro message
13+
set TERM "xterm-256color" # Sets the terminal type
14+
set -gx EDITOR nvim # $EDITOR use Neovim in terminal
15+
16+
set XINITRC "$XDG_CONFIG_HOME/x11/xinitrc"
17+
set GTK2_RC_FILES "$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
18+
set CARGO_HOME "$XDG_DATA_HOME/cargo"
19+
set TERMINFO "$XDG_DATA_HOME/terminfo"
20+
set RUSTUP_HOME "$XDG_DATA_HOME/rustup"
21+
set wget wget --hsts-file="$XDG_DATA_HOME/wget-hsts"
22+
set HISTFILE "$XDG_STATE_HOME/bash/history"
23+
set GNUPGHOME "$XDG_DATA_HOME/gnupg"
24+
set ANDROID_SDK_HOME "$XDG_CONFIG_HOME/android"
25+
set CARGO_HOME "$XDG_DATA_HOME/"
26+
27+
### SET EITHER DEFAULT EMACS MODE OR VI MODE ###
28+
function fish_user_key_bindings
29+
# fish_default_key_bindings
30+
fish_vi_key_bindings
31+
end
32+
### END OF VI MODE ###
33+
34+
### AUTOCOMPLETE AND HIGHLIGHT COLORS ###
35+
set fish_color_normal brcyan
36+
set fish_color_autosuggestion '#7d7d7d'
37+
set fish_color_command brcyan
38+
set fish_color_error '#ff6c6b'
39+
set fish_color_param brcyan
40+
41+
# root privileges
42+
alias doas="doas --"
43+
44+
# navigation
45+
alias ..='cd ..'
46+
alias ...='cd ../..'
47+
alias .3='cd ../../..'
48+
alias .4='cd ../../../..'
49+
alias .5='cd ../../../../..'
50+
51+
alias cf='cd $XDG_CONFIG_HOME && la'
52+
alias src='cd $HOME/.local/src && la'
53+
alias sc='cd $HOME/.local/bin && la'
54+
55+
# vim to nvim
56+
alias vim='nvim'
57+
58+
# Changing "ls" to "exa"
59+
alias ls='exa -al --color=always --group-directories-first' # my preferred listing
60+
alias la='exa -a --color=always --group-directories-first' # all files and dirs
61+
alias ll='exa -l --color=always --group-directories-first' # long format
62+
alias lt='exa -aT --color=always --group-directories-first' # tree listing
63+
alias l.='exa -a | egrep "^\."'
64+
65+
# pacman and yay
66+
alias pacsyu='sudo pacman -Syu' # update only standard pkgs
67+
alias pacsyyu='sudo pacman -Syyu' # Refresh pkglist & update standard pkgs
68+
alias yaysua='yay -Sua --noconfirm' # update only AUR pkgs (yay)
69+
alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR pkgs (yay)
70+
alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru)
71+
alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru)
72+
alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock
73+
alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages
74+
75+
# get fastest mirrors
76+
alias mirror="sudo reflector -c India -c China -c 'Hong Kong' -c Singapore --sort rate --latest 10 --verbose --save /etc/pacman.d/mirrorlist"
77+
78+
# Colorize grep output (good for log files)
79+
alias grep='grep --color=auto'
80+
alias egrep='egrep --color=auto'
81+
alias fgrep='fgrep --color=auto'
82+
83+
# confirm before overwriting something
84+
alias cp="cp -i"
85+
alias mv='mv -i'
86+
alias rm='rm -i'
87+
88+
# ps
89+
alias psa="ps auxf"
90+
alias psgrep="ps aux | grep -v grep | grep -i -e VSZ -e"
91+
alias psmem='ps auxf | sort -nr -k 4'
92+
alias pscpu='ps auxf | sort -nr -k 3'
93+
94+
# Merge Xresources
95+
alias merge='xrdb -merge ~/.Xresources'
96+
97+
# git
98+
alias addup='git add -u'
99+
alias addall='git add .'
100+
alias branch='git branch'
101+
alias checkout='git checkout'
102+
alias clone='git clone'
103+
alias commit='git commit -m'
104+
alias fetch='git fetch'
105+
alias pull='git pull origin'
106+
alias push='git push origin'
107+
alias tag='git tag'
108+
109+
# gpg encryption
110+
# verify signature for isos
111+
alias gpg-check="gpg2 --keyserver-options auto-key-retrieve --verify"
112+
# receive the key of a developer
113+
alias gpg-retrieve="gpg2 --keyserver-options auto-key-retrieve --receive-keys"
114+
115+
116+
# switch between shells
117+
# I do not recommend switching default SHELL from bash.
118+
alias tobash="sudo chsh $USER -s /bin/bash && echo 'Now log out.'"
119+
alias tozsh="sudo chsh $USER -s /bin/zsh && echo 'Now log out.'"
120+
alias tofish="sudo chsh $USER -s /bin/fish && echo 'Now log out.'"
121+
122+
# the terminal rickroll
123+
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
124+
125+
fnm env --use-on-cd | source
126+
127+
### SETTING THE STARSHIP PROMPT ###
128+
starship init fish | source
129+
130+
# Start Hyprland at login
131+
if status --is-login
132+
if test -z "$DISPLAY" -a $XDG_VTNR = 1
133+
Hyprland
134+
end
135+
end

mako/config

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
font=JetBrains Mono Nerd Font 13
2+
background-color=#002B36
3+
text-color=#839496
4+
border-color=#073642
5+
border-radius=8
6+
default-timeout=5000
7+
8+
[urgency=high]
9+
text-color=#CB4B16

0 commit comments

Comments
 (0)