Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Dotfiles for Debian

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Dotfiles for Debian

#1 Post by whynot »

Hi
Is there anyone who tried this https://github.com/nickjj/dotfiles? I have an Issue just like here https://github.com/nickjj/dotfiles/issues/17
History feature doesn't work. I can't use old commands with the up-arrow key.

Code: Select all

whynot@whynot ~/dotfiles (master) $ git pull
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 8 (delta 4), reused 8 (delta 4), pack-reused 0
Unpacking objects: 100% (8/8), 2.18 KiB | 79.00 KiB/s, done.
From https://github.com/nickjj/dotfiles
   42a3c5b..76a80f4  master     -> origin/master
Updating 42a3c5b..76a80f4
Fast-forward
 .vim/spell/en.utf-8.add | 5 +++++
 .vimrc                  | 2 ++
 2 files changed, 7 insertions(+)
whynot@whynot ~/dotfiles (master) $ cd ..
whynot@whynot ~ $ rm -rf dotfiles 
whynot@whynot ~ $ bash <(curl -sS https://raw.githubusercontent.com/nickjj/dotfiles/master/install)

If you choose yes, all of the system packages below will be installed:

curl git iproute2 python3-pip ripgrep tmux vim-gtk zsh gnupg htop jq pass pwgen rsync shellcheck unzip

If you choose no, the above packages will not be installed and this script
will exit. This gives you a chance to edit the list of packages if you don't
agree with any of the decisions.

The packages listed after zsh are technically optional but are quite useful.
Keep in mind if you don't install pwgen you won't be able to generate random
passwords using a custom alias that's included in these dotfiles.

Do you want to install the above packages? (y/n) y
[sudo] password for whynot: 
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease                  
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease   
Hit:4 http://deb.debian.org/debian bullseye-backports InRelease                
Hit:5 http://packages.microsoft.com/repos/code stable InRelease                
Get:6 https://download.docker.com/linux/debian bullseye InRelease [43.3 kB]    
Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease                  
Hit:8 https://packages.microsoft.com/repos/vscode stable InRelease             
Fetched 43.3 kB in 1s (42.5 kB/s)                         
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u1).
git is already the newest version (1:2.30.2-1).
gnupg is already the newest version (2.2.27-2).
htop is already the newest version (3.0.5-7).
iproute2 is already the newest version (5.10.0-4).
jq is already the newest version (1.6-2.1).
pass is already the newest version (1.7.3-2).
pwgen is already the newest version (2.08-2).
python3-pip is already the newest version (20.3.4-4).
rsync is already the newest version (3.2.3-4+deb11u1).
ripgrep is already the newest version (12.1.1-1+b1).
shellcheck is already the newest version (0.7.1-1+deb11u1).
unzip is already the newest version (6.0-26).
vim-gtk is already the newest version (2:8.2.2434-3+deb11u1).
zsh is already the newest version (5.8-6+b2).
tmux is already the newest version (3.2a-4~bpo11+1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Where do you want to clone these dotfiles to [~/dotfiles]? 

Cloning into '/home/whynot/dotfiles'...
remote: Enumerating objects: 1163, done.
remote: Counting objects: 100% (371/371), done.
remote: Compressing objects: 100% (200/200), done.
remote: Total 1163 (delta 180), reused 302 (delta 116), pack-reused 792
Receiving objects: 100% (1163/1163), 269.79 KiB | 1.31 MiB/s, done.
Resolving deltas: 100% (580/580), done.
Updating zdharma-continuum/fast-syntax-highlighting...
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Already up to date.

Updating zsh-users/zsh-autosuggestions...
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint: 
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint: 
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Already up to date.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 82854  100 82854    0     0   586k      0 --:--:-- --:--:-- --:--:--  582k
Cloning into '/home/whynot/.tmux/plugins/tpm'...
remote: Enumerating objects: 54, done.
remote: Counting objects: 100% (54/54), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 54 (delta 8), reused 22 (delta 5), pack-reused 0
Receiving objects: 100% (54/54), 22.86 KiB | 1.90 MiB/s, done.
Resolving deltas: 100% (8/8), done.
Cloning into '/home/whynot/.local/share/fzf'...
remote: Enumerating objects: 108, done.
remote: Counting objects: 100% (108/108), done.
remote: Compressing objects: 100% (103/103), done.
remote: Total 108 (delta 3), reused 42 (delta 1), pack-reused 0
Receiving objects: 100% (108/108), 220.33 KiB | 1.36 MiB/s, done.
Resolving deltas: 100% (3/3), done.
Downloading bin/fzf ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   666  100   666    0     0  10571      0 --:--:-- --:--:-- --:--:-- 10571
100  992k  100  992k    0     0   975k      0  0:00:01  0:00:01 --:--:-- 1326k
  - Checking fzf executable ... 0.29.0

-------------------------------------------------------------------------------

ln -fs "/home/whynot/dotfiles/.zshenv" "/home/whynot/.zshenv"
ln -fs "/home/whynot/dotfiles/.config/zsh/.zshrc" "/home/whynot/.config/zsh/.zshrc"
ln -fs "/home/whynot/dotfiles/.config/zsh/.zprofile" "/home/whynot/.config/zsh/.zprofile"
ln -fs "/home/whynot/dotfiles/.config/zsh/.aliases" "/home/whynot/.config/zsh/.aliases"
ln -fs "/home/whynot/dotfiles/.gitconfig" "/home/whynot/.gitconfig"
ln -fs "/home/whynot/dotfiles/.vimrc" "/home/whynot/.vimrc"
ln -fs "/home/whynot/dotfiles/.vim/spell/en.utf-8.add" "/home/whynot/.vim/spell/en.utf-8.add"
ln -fs "/home/whynot/dotfiles/.tmux.conf" "/home/whynot/.tmux.conf"
ln -fs "/home/whynot/dotfiles/.local/bin/update-zsh-plugins" "/home/whynot/.local/bin/update-zsh-plugins"
ln -fs "/home/whynot/dotfiles/.local/bin/set-theme" "/home/whynot/.local/bin/set-theme"

# And if you happen to be using WSL:
sudo ln -fs "/home/whynot/dotfiles/etc/wsl.conf" /etc/wsl.conf

-------------------------------------------------------------------------------

A potentially dangerous action is about to happen. The above files are going to
get forcefully symlinked.

What does that mean?

Any config files you have on the right hand side of the paths are going to get
overwritten with the files that come with my dotfiles (left side).

If you care about your original config files now would be the time to back
them up. They will ALL be overwritten if you say yes to the prompt below.

Ready to continue and apply the symlinks? (y) y
Password: 


Installing asdf v0.8.1...
Cloning into '/home/whynot/.local/share/asdf'...
remote: Enumerating objects: 142, done.
remote: Counting objects: 100% (142/142), done.
remote: Compressing objects: 100% (125/125), done.
remote: Total 142 (delta 9), reused 59 (delta 4), pack-reused 0
Receiving objects: 100% (142/142), 82.77 KiB | 792.00 KiB/s, done.
Resolving deltas: 100% (9/9), done.
Note: switching to 'a1ef92adb0cfd1e05b89feed93dd8b24c991134f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false



Installing node 14.17.3...
updating plugin repository...remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 13 (delta 8), reused 6 (delta 3), pack-reused 0
Unpacking objects: 100% (13/13), 2.09 KiB | 164.00 KiB/s, done.
From https://github.com/asdf-vm/asdf-plugins
   96aadf3..071e261  master     -> origin/master
HEAD is now at 071e261 chore: format README.md
Plugin named nodejs already added
nodejs 14.17.3 is already installed

> yarn@1.22.17 preinstall /home/whynot/.asdf/installs/nodejs/14.17.3/.npm/lib/node_modules/yarn
> :; (node ./preinstall.js > /dev/null 2>&1 || true)

/home/whynot/.asdf/installs/nodejs/14.17.3/.npm/bin/yarn -> /home/whynot/.asdf/installs/nodejs/14.17.3/.npm/lib/node_modules/yarn/bin/yarn.js
/home/whynot/.asdf/installs/nodejs/14.17.3/.npm/bin/yarnpkg -> /home/whynot/.asdf/installs/nodejs/14.17.3/.npm/lib/node_modules/yarn/bin/yarn.js
+ yarn@1.22.17
updated 1 package in 2.743s
Reshimming asdf nodejs...


Installing tmux plugins...
Already installed "tpm"
Already installed "tmux-resurrect"
Already installed "tmux-yank"


Installing Vim plugins...
Everything was installed successfully!

Check out the README file on GitHub to do 1 quick thing manually:

https://github.com/nickjj/dotfiles#did-you-install-everything-successfully

You can safely close this terminal.

The next time you open your terminal zsh will be ready to go!
whynot@whynot ~ $ 

Code: Select all

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye
After reboot I had this error but

Code: Select all

/home/whynot/.config/zsh/.zshrc:.:80: no such file or directory: /fzf/shell/key-bindings.zsh
/home/whynot/.config/zsh/.zshrc:.:112: no such file or directory: /fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
/home/whynot/.config/zsh/.zshrc:.:113: no such file or directory: /zsh-autosuggestions/zsh-autosuggestions.zsh
I solved that error with this line `export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"}`
but history issue is still the same.

Code: Select all

$ cat ~/.zshenv
export XDG_CONFIG_HOME="${HOME}/.config"
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"}

User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Re: Dotfiles for Debian

#2 Post by whynot »

Where do we place all those export commands?

Code: Select all

export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_STATE_HOME="${HOME}/.local/state"
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh" 

Post Reply