Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MobSenpai committed Sep 7, 2023
1 parent 1aada5a commit 6a54bc6
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 22 deletions.
3 changes: 2 additions & 1 deletion home/yashraj/shared/programs/neofetch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@
# mocp
# mopidy
# mpd
# mpv
# muine
# netease-cloud-music
# olivia
Expand All @@ -455,7 +456,7 @@
# xmms2d
# xnoise
# yarock
music_player="mpd"
music_player="mpv"
# Format to display song information.
#
Expand Down
21 changes: 18 additions & 3 deletions home/yashraj/shared/shell/bash.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,31 @@ in {
enable = true;

initExtra = ''
# General
# =============================================
# if not running interactively, don't do anything
[[ $- != *i* ]] && return
export HISTCONTROL=ignoreboth:erasedups
# ignore upper and lowercase when TAB completion
bind "set completion-ignore-case on"
# shopt
# set title
PROMPT_COMMAND='echo -ne "\033]0;$(basename "$(pwd)")\007"'
# Completions
# =============================================
set -o vi
shopt -s autocd # change to named directory
shopt -s cdspell # autocorrects cd misspellings
shopt -s cmdhist # save multi-line commands in history as single line
shopt -s dotglob
shopt -s histappend # do not overwrite history
shopt -s expand_aliases # expand aliases
# ex = EXtractor for all kinds of archives
# ex = Extractor for all kinds of archives
# =============================================
# usage: ex <file>
ex ()
{
Expand All @@ -47,7 +61,8 @@ in {
fi
}
# reporting tools - install when not installed
# Reporting tools
# =============================================
neofetch
'';

Expand Down
26 changes: 11 additions & 15 deletions home/yashraj/shared/shell/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
home.packages = lib.attrValues {
inherit
(pkgs)
# bfg-repo-cleaner

colordiff
# gist

# git-filter-repo

;

inherit
(pkgs.gitAndTools)
gitui
;
};

Expand All @@ -26,20 +25,17 @@
# signByDefault = true;
# };

# delta = {
# enable = true;
# options.map-styles = "bold purple => syntax #8839ef, bold cyan => syntax #1e66f5";
# };
delta = {
enable = true;
};

extraConfig = {
init = {defaultBranch = "main";};
diff.colorMoved = "default";
merge.conflictstyle = "diff3";
# delta = {
# syntax-theme = "Nord";
# line-numbers = true;
# };
#credential.helper = "${pkgs.gitAndTools.gitFull}/bin/git-credential-libsecret";
delta = {
line-numbers = true;
};
};

aliases = {
Expand Down
4 changes: 2 additions & 2 deletions home/yashraj/shared/shell/xdg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ with lib; let
"x-scheme-handler/https" = browser;
"x-scheme-handler/unknown" = browser;

"audio/*" = ["vlc.desktop"];
"video/*" = ["vlc.dekstop"];
"audio/*" = ["mpv.desktop"];
"video/*" = ["mpv.dekstop"];
"image/*" = ["feh.desktop"];
"inode/directory" = ["pcmanfm.desktop"];
"application/json" = browser;
Expand Down
2 changes: 1 addition & 1 deletion hosts/shared/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
glib
libnotify
libsecret
mpv
ntfs3g
p7zip
pamixer
Expand All @@ -75,7 +76,6 @@
unrar
unzip
vim
vlc
tree
wget
zathura
Expand Down

0 comments on commit 6a54bc6

Please sign in to comment.